The most popular PHP analyser. 10 strictness levels (0–10). Level 0 covers basic errors; level 9 checks every line for type correctness.
vendor/bin/phpstan analyse src --level=6
An alternative from Vimeo. Stricter, supports @template generics and taint analysis (detecting SQL injection and XSS through data flow).
null valuereturn