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

Fix PHP 8.4 deprecations #163

Merged
merged 3 commits into from
Dec 22, 2024
Merged

Fix PHP 8.4 deprecations #163

merged 3 commits into from
Dec 22, 2024

Conversation

cedric-anne
Copy link
Contributor

Implicitly nullable parameter declarations are deprecated in PHP 8.4. The proposed change is safe and is not considered by PHP as a signature change, see https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

@cedric-anne
Copy link
Contributor Author

This new syntax is compatible only with PHP >= 7.1. Would you accept a PR to drop the compatibility with these outdated PHP versions? What PHP versions should be kept?

@cedric-anne
Copy link
Contributor Author

Ping @vearutop .

The deprecation warning on PHP 8.4 is preventing us to active our CI checks on this incoming PHP version. We could still apply manually a patch, but we would prefer to help to fix it in your lib directly.

@xcvbn23
Copy link

xcvbn23 commented Dec 22, 2024

Any news here @vearutop, I just ran into the same issue.

@vearutop vearutop merged commit 1f3a77a into swaggest:master Dec 22, 2024
11 checks passed
@xcvbn23
Copy link

xcvbn23 commented Dec 24, 2024

Thanks @vearutop appreciate it 💪

@cedric-anne cedric-anne deleted the fix/php-8.4 branch December 25, 2024 09:16
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