Skip to content

Conversation

niden
Copy link
Contributor

@niden niden commented Aug 17, 2025

  • 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 phpstan and phpunit (composer)
  • Added github actions workflow to run phpstan and the tests
  • Upgraded phpunit.xml.dist for the new phpunit version (removed based on Pdo PR)
  • Changed implicitly nullable variables to accept null also (PHP 8.4)
  • Renamed QueryTest to QueryTestCase 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

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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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

@compwright
Copy link
Contributor

@pmjones could we get this going and released? I'm running into deprecation errors in PHP 8.4. Thanks!

@niden
Copy link
Contributor Author

niden commented Sep 1, 2025

Closing this because of scope creep - We can revisit it later if needed. Another PR with the PHP 8.4 changes will follow

@niden niden closed this Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants