- Run
composer require nicksdot/phpstan-phpstorm-error-identifiers
- Add the formatter to the
services
config inphpstan.neon
services:
errorFormatter.checkstyle:
class: NickSdot\PhpStanPhpStormErrorIdentifiers\CheckstyleErrorFormatterPhpStorm
That's it.
No other changes compared to the original formatter were made. This is a PHPStorm bug, a PR to PHPStan was discussed but decided against.