-
Notifications
You must be signed in to change notification settings - Fork 76
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
Support PHP 8.4 #191
Support PHP 8.4 #191
Conversation
Thank you @andrewnicols for this PR. I think that we can add a default value to Maybe something like |
Cheers, I've set a default value in the constructor of |
There are some errors with |
* Add tests in GitHub Action * Explicitly declare nullable parameters as nullable
Many of the dependencies were outdated and did not support the full range of PHP versions supported by this project at both extremes, specifically the lowest optioned versions of the following dependencies did not support PHP 8.4: - guzzlehttp/guzzle - guzzlehttp/promises - guzzlehttp/psr7 - phpunit/phpunit - symfony/phpunit-bridge Meanwhile the highest possible version of each of the above already supported PHP 8.1 and above, including PHP 8.4.
Thanks @Kevinrob , I saw these the other day but didn't get a chance to trouble-shoot. I ended up having to reduce some alternate versions, but most of the existing lowest options were unsupported, and all of the highest version options were fully supported.
|
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.
Nice! Thank you!
PHP 8.4 is now in release candidate and due for release in about 6 weeks. Features are now sealed.
This pull request:
Note: There is still a warning in relation to the
GreedyCacheStrategy
because the second argument ($defaultTtl
) is required, but the first argument is optional. I'm not sure how you wish to resolve this so I'll defer to a separate issue. Options are to either stop the first argument (CacheStorageInterface $cache
) from having a default value (but still allowing nullability), or to provide a default of the default ttl.