phpstan / phpstan-strict-rules

Extra strict and opinionated rules for PHPStan
MIT License
604 stars 48 forks source link

Check if override method does not rename parameters #233

Open mvorisek opened 11 months ago

mvorisek commented 11 months ago

repro: https://phpstan.org/r/1c91414c-7a03-437c-976a-95a28d07f919 and https://phpstan.org/r/e2b66886-71db-4a33-9c17-aee3c1f67b7d

to improve override methods checks and make refactoring/updates safer

expected result: l12 in the repro should emit phpstan error for the 1st parameter