-
Notifications
You must be signed in to change notification settings - Fork 10
Changes for Atlas.Query to work with PHP 8.4 #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Select.php
Outdated
* @method int fetchAffected() | ||
* @method array|false fetchColumn(int $column = 0) | ||
* @method array|false fetchGroup(int $style = PDO::FETCH_COLUMN) | ||
* @method array|false fetchGroup(int $style = 7) // 7 = PDO::FETCH_COLUMN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for this change? It seems better the way it was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpstan somehow could not detect the constant and was throwing errors. That is the only reason for this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import may be missing and Atlas\Query\PDO
may not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I'll be damned. I completely missed that. Nice catch. Reverted it back
@pmjones could we get this going and released? I'm running into deprecation errors in PHP 8.4. Thanks! |
Closing this because of scope creep - We can revisit it later if needed. Another PR with the PHP 8.4 changes will follow |
Changed minimum version to PHP 8.1 << Please advise if this is acceptable(removed based on Pdo PR)Added version to composer.json(removed based on Pdo PR)Upgraded phpunit.xml.dist for the new phpunit version(removed based on Pdo PR)QueryTest
toQueryTestCase
to stop phpunit from trying to run tests on it since it is an abstract class (warning on console).Please advise what needs to be changed.
Thanks