phpstan / phpstan-strict-rules

Extra strict and opinionated rules for PHPStan
MIT License
592 stars 46 forks source link

Add support to requireParentConstructorCall for indirect calls #222

Open TravisCarden opened 1 year ago

TravisCarden commented 1 year ago

As originally reported in https://github.com/phpstan/phpstan/issues/9577, calling a constructor indirectly, e.g., via a trait method alias, is not supported by requireParentConstructorCall. I am opening this issue per @ondrejmirtes's request there.

Code snippet that reproduces the problem

https://phpstan.org/r/3d12f7cf-b4dd-4ba3-be0d-5738eba76d53