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

Reflection error for the attribute ReturnTypeWillChange on PHP 7.1-7.4 #6414

Closed
lysyjan opened this issue Jan 19, 2022 · 2 comments
Closed

Comments

@lysyjan
Copy link

lysyjan commented Jan 19, 2022

Bug report

We use PHPStan with two PHP versions. With the latest 8.1 and the older 7.2. If we use the annotation ReturnTypeWillChange, then PHPStan running on PHP 7.2 reports the error Reflection error: Attribute not found. But when we remove the annotation then it reports an error with PHP 8.1.

Code snippet that reproduces the problem

Link with the code.

Expected output

No error on PHP 7.1 - 7.4

@ondrejmirtes
Copy link
Member

Fixed: ondrejmirtes/BetterReflection@bf36244 + phpstan/phpstan-src@639a055 + 8f75bed

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants