Skip to content
On this page

PHP Stan

PHP Static Analysis Tool - discover bugs in your code without running it!

Installatie

PHP Stan installeren in je project kan via Composer:

bash
composer require --dev phpstan/phpstan

Configuratie

Configuratie gebeurt in Husky.

Gebruik

bash
vendor/bin/phpstan analyse -l 5 src

Dit zal PHPStan een analyse laten doen van de code in src op niveau 5. Meer informatie over niveau's