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

immutable/readonly properties incorrectly detected that they are already assigned (using bleeding edge) #7411

Closed
bendavies opened this issue Jun 6, 2022 · 3 comments

Comments

@bendavies
Copy link

Bug report

Immutable/readonly properties are incorrectly being detected as being already assigned, in the example below.
Note that this ONLY happens using bleeding edge rules.

Code snippet that reproduces the problem

https://phpstan.org/r/e95afd93-d0ba-4dd1-bc3c-18e62bcbe0b6

Expected output

No errors should be reported.

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

very!
https://twitter.com/OndrejMirtes/status/1532769529381675008

@ondrejmirtes
Copy link
Member

Duplicate of #6402

Unfortunately I need to wait for some groundwork to be able to fix this scenario in a nice way, outlined here: phpstan/phpstan-src#1330 (comment)

@bendavies
Copy link
Author

thankyou!

@github-actions
Copy link

github-actions bot commented Jul 8, 2022

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 Jul 8, 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