Skip to content

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

Merged
ondrejmirtes merged 1 commit intophpstan:1.7.xfrom
canvural:bugfix-6007
Jun 3, 2022
Merged

Dont report unsafe static if constructor is in both parent and interface#1395
ondrejmirtes merged 1 commit intophpstan:1.7.xfrom
canvural:bugfix-6007

Conversation

@canvural
Copy link
Copy Markdown
Contributor

@canvural canvural commented Jun 3, 2022

@ondrejmirtes
Copy link
Copy Markdown
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
Copy Markdown
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