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

Dont report unsafe static if constructor is in both parent and interface #1395

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

canvural
Copy link
Contributor

@canvural canvural commented Jun 3, 2022

@ondrejmirtes
Copy link
Member

Super-complicated situation that I haven't realized :) Thank you very much!

@ondrejmirtes ondrejmirtes merged commit 3a7a22d into phpstan:1.7.x Jun 3, 2022
@canvural
Copy link
Contributor Author

canvural commented Jun 3, 2022

Yeah, it's an interesting case. But it also needs phpstan/phpstan#7388 to be solved too, to really enforce the method signatures. I'll try to take a look at that too.

@canvural canvural deleted the bugfix-6007 branch June 3, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unsafe usage of new static() when constructor is defined in a parent class
2 participants