-
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
base: trunk
Are you sure you want to change the base?
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! |
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.