Skip to content
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

Add support for PHP 8.4 #59

Merged
merged 8 commits into from
Nov 26, 2024
Merged

Conversation

weierophinney
Copy link
Contributor

Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA no

Description

This patch adds support for PHP 8.4.

To accomplish this, it also bumps PHPUnit to 10.5. Doing so uncovered a previously undetected issue with the RoutesFilter, whereby a class name used as filter was not properly escaped, causing the regexp to fail compilation; this has been fixed now.

willReturnOnConsecutiveCalls was missing the call to the sort option, and raising an error due to being called more than 5 times.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- Adds 8.4 to PHP constraint
- Bumps PHPUnit to 10.5
- Fixes a number of PHPUnit deprecations
- Resolves an issue in the RoutesFilter when performing a regex against a FQCN.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney weierophinney added the Enhancement New feature or request label Nov 25, 2024
@weierophinney weierophinney added this to the 2.10.0 milestone Nov 25, 2024
- Primarily changing `?:` to `??` when the left side is testing against null
- Adds some typehints where expectations are known
- Adds `=== null` checks to validate a value is present
- Indents a heredoc

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
First version fixing nullable argument handling.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@gsteel
Copy link
Member

gsteel commented Nov 26, 2024

Conflicting with amphp/amp < 2.6.4 solves these deprecations I think.

Release is blocked here until #58 is resolved because #52 was merged without proper review.

Ensures deprecations will be resolved.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@froschdesign
Copy link
Member

Conflicting with amphp/amp < 2.6.4 solves these deprecations I think.

Should be true, because we already had this problem in other components.

- Conflict with older versions of symfony 5 components
- Bump vfsStream to latest

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney
Copy link
Contributor Author

@gsteel All dependency issues resolved — there were some issues with older symfony components as well.

@weierophinney
Copy link
Contributor Author

Should these be merged, and #58 rebased, or would it be better to rebase this after that one is merged?

@gsteel gsteel self-assigned this Nov 26, 2024
Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@gsteel gsteel merged commit f6aa569 into mezzio:2.10.x Nov 26, 2024
14 checks passed
@gsteel
Copy link
Member

gsteel commented Nov 26, 2024

Merged as-is #58 has a way to go, so the rebase can happen there 👍

@gsteel gsteel mentioned this pull request Nov 26, 2024
@weierophinney weierophinney deleted the feature/php-8.4 branch November 27, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants