phpstan-generic-rules
Rules list
Debug rules
- You should not have
var_dump
,exit
ordie
function calls - If you have
symfony/var-dumper
, you should not havedump
ordie
function calls
Installation
We assume that PHPStan is already installed in your project.
To use this extension, require it in Composer:
composer require --dev Korbeil/phpstan-generic-rules
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer
, include phpstan-strict-rules.neon in your project's PHPStan config:
includes:
- vendor/Korbeil/phpstan-generic-rules/extension.neon