This PHPStan extension checks only PHPDoc and typehint related errors in your code.
- Do not set rule level (
--level
) - Require this package in Composer:
composer require --dev szepeviktor/phpstan-phpdoc
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 extension.neon in your project's PHPStan config:
includes:
- vendor/szepeviktor/phpstan-phpdoc/extension.neon