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 Access to an undefined static property #489

Merged
merged 4 commits into from Mar 31, 2021

Conversation

VincentLanglet
Copy link
Contributor

I think I found a solution

@ondrejmirtes
Copy link
Member

Fixes phpstan/phpstan#4734

@ondrejmirtes
Copy link
Member

Can you please access an undefined property in the test and assert the error message so that we're sure it just doesn't silence all errors? Thank you.

@VincentLanglet
Copy link
Contributor Author

VincentLanglet commented Mar 31, 2021

Can you please access an undefined property in the test and assert the error message so that we're sure it just doesn't silence all errors? Thank you.

Sure, I first need to fix the two failing tests...

@VincentLanglet
Copy link
Contributor Author

@ondrejmirtes inClosureBindClass are sometimes 'static' so I tried to fix it.
Now my bug is still present in php < 7.4.

Any idea why ? Do you know any change in the behavior ?
It's hard to debug since I'm running with php 8...

@ondrejmirtes
Copy link
Member

I have no idea...

@VincentLanglet VincentLanglet marked this pull request as ready for review March 31, 2021 14:44
@VincentLanglet
Copy link
Contributor Author

Fixed @ondrejmirtes :)

@ondrejmirtes ondrejmirtes merged commit 2f2639c into phpstan:master Mar 31, 2021
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants