Besides the traditional rule levels 0 through 9 (https://phpstan.org/user-guide/rule-levels) which allow developers to adopt PHPStan incrementally while increasing the strictness gradually, the static analyser offers plenty of other configuration options to look at the code with a critical eye.

In this talk I’ll show you these options with examples of practical impact on your code. It will become more predictable and readable.

Comments

Please login to leave a comment

Marc at 00:03 on 19 Mar 2024

Talk was mostly about hidden settings to tune the strictness of the analyser.
This in combination with several packages could give you the most optimal results... Or not, because turning it all up to "11" is also not a good idea.