-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix PHP 8.4 deprecation #230
Conversation
Since this is under the |
Here's an AI-generated summary if it helps reviewing this:
|
|
Sorry, forgot: |
Ah awesome, that fixed it, thanks @Luc45! |
I get this deprecation notice when on this branch (such as running
|
@zhongruige Can you please pull and try again? |
Perfect, thanks @Luc45! using the build worked and the notices are no longer showing. |
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.
LGTM and tested great, thanks for keeping our projects compliant with the latest versions of PHP and for adding in tests across the range of PHP versions that we support, too.
This PR:
Testing Instructions
make check-php-versions
, assert that it builds a docker image for each PHP versionmake tests-all
and assert it runs the PHPUnit and Phan in each of the supported versions, and that it passes on allThere's only one Deprecated being triggered in the test itself in PHP 8.4, but it's safe to ignore:
We currently use on an older version of
spatie/phpunit-snapshot-assertions
that supports PHP 7.2. However, this version triggers a deprecation warning when running on PHP 8.4. While upgrading to the latest release of the package would resolve the issue, it requires a minimum of PHP 8.1, which would break compatibility with older environments.Given these constraints, the most practical solution is to simply ignore this deprecation notice under PHP 8.4. Since the warning appears only during tests.