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

Static property HelloWorld::$tempDir is never read, only written #9409

Closed
kamil-tekiela opened this issue Jun 7, 2023 · 3 comments
Closed

Comments

@kamil-tekiela
Copy link

https://phpstan.org/r/cdfbef75-f51b-4911-ab87-b313acd4c47f

I don't understand what PHPStan is complaining about here because it is definitely read from. I tested it and it works as designed. When I change the read line to use self instead of $this PHPstan no longer complains, but why would that ever make a difference? It's still the same code.

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@503978b

@kamil-tekiela
Copy link
Author

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