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

chore: check for nullable_type_declaration #117

Merged

Conversation

phil-davis
Copy link
Contributor

@phil-davis phil-davis commented Jul 29, 2024

As suggested by @cedric-anne in sabre-io/dav#1556 (comment)

I manually added an = null locally to a function parameter, and ran cs-fixer. It correctly reported the problem and added the fix - putting the ? in front of the type declaration. So cs-fixer running on PHP 7.4 will find and fix this issue that causes deprecation warnings on PHP 8.4.

@phil-davis phil-davis self-assigned this Jul 29, 2024
@phil-davis phil-davis requested a review from staabm July 29, 2024 09:35
@phil-davis phil-davis merged commit 25fbf8f into sabre-io:v2 Aug 27, 2024
6 checks passed
@phil-davis phil-davis deleted the check-for-nullable_type_declaration branch August 27, 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.

1 participant