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: Improve PHP 8.1 compatibility by disabling deprecation notices #4746

Merged

Conversation

jeromegamez
Copy link
Contributor

Closes #4554

I honestly have no idea how to reliably test this, but what I did was open the project in PHPStorm, set the language level to PHP 8.1, and run the Class Hierarchy Checks inspection.

See https://php.watch/versions/8.1/internal-method-return-types#ReturnTypeWillChange

:octocat:

PS: This will probably not survive PHP 8.2 😅

@jeromegamez jeromegamez requested review from a team as code owners December 7, 2021 18:52
@jeromegamez jeromegamez force-pushed the class-hierarchy-checks-php-8-1 branch from 134d255 to 21e9f6a Compare December 8, 2021 23:09
@jeromegamez jeromegamez force-pushed the class-hierarchy-checks-php-8-1 branch from 21e9f6a to eb24e54 Compare January 9, 2022 23:35
Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

Thank you @jeromegamez, this looks good to me!

@dwsupplee dwsupplee merged commit 6702b54 into googleapis:main Apr 20, 2022
@jeromegamez jeromegamez deleted the class-hierarchy-checks-php-8-1 branch May 26, 2022 20:52
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.

Improve PHP 8.1 support (changes required around Iterator usage)
3 participants