ticketswap/phpstan-error-formatter
Minimalistic PHPStan error formatter with per-error clickable file/line links, non-wrapping output, naive syntax highlighting, and visually truncated long paths while preserving links. Easy install via Composer; set PHPStan errorFormat to ticketswap.
file:///Volumes/CS/www/src/App/User.php.To use this extension, require it in Composer:
composer require --dev ticketswap/phpstan-error-formatter
If you also install phpstan/extension-installer then you're all set!
If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:
includes:
- vendor/ticketswap/phpstan-error-formatter/extension.neon
Configure PHPStan to use the ticketswap error formatter:
parameters:
errorFormat: ticketswap
When you haven't done so, make sure to configure the editorUrl:
For example, on PhpStorm:
parameters:
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
On Visual Studio Code, you can change to:
parameters:
editorUrl: 'vscode://file/%%file%%:%%line%%'
How can I help you explore Laravel packages today?