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

PHP8.2 - Internal error for @property defined in class interface #8537

Closed
lcharette opened this issue Dec 16, 2022 · 2 comments
Closed

PHP8.2 - Internal error for @property defined in class interface #8537

lcharette opened this issue Dec 16, 2022 · 2 comments

Comments

@lcharette
Copy link

Bug report

On PHP 8.2, when a dynamic property is documented in an interface @property annotation, an Internal Error is thrown. This is not an issue on PHP 8.0 and 8.1.

Could be related to #8496

Code snippet that reproduces the problem

https://phpstan.org/r/df80074b-b8c9-41be-a40d-cc160cb1cbbb

Result in :

Internal error: Property $x was not found in reflection of class SampleInterface.

Expected output

No errors!

Or same output as when @proprety is added to the class directly : https://phpstan.org/r/c3ae63ea-3ea4-4760-a367-98e03caf4ddd

Did PHPStan help you today? Did it make you happy in any way?

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@4025209

Thank you!

@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 Jan 18, 2023
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