grifart / phpstan-oneline
PHPStan compact error formatter
Installs: 479 859
Dependents: 9
Suggesters: 0
Security: 0
Stars: 23
Watchers: 4
Forks: 4
Open Issues: 0
Type:phpstan-extension
Requires
- php: ^8.2
- phpstan/phpstan: ^1.0 || ^2.0
This package is auto-updated.
Last update: 2024-12-03 12:36:20 UTC
README
Compact and clickable PhpStan error output handler.
So when you run for example:
phpstan analyze -l max --configuration phpstan.neon --error-format oneline
and now you will get to the location where error occurred by one-click!
Installation
composer require --dev grifart/phpstan-oneline
and register error formatter into your phpstan.neon
:
includes: - vendor/grifart/phpstan-oneline/config.neon
Clickable paths in PhpStorm
- Install Awesome Console (available in PhpStorm repositories)
- run phpstan in PhpStorm terminal
Custom error format
There has been added compact
error format. It looks like this by default:
phpstan analyze -l max --configuration phpstan.neon --error-format compact
You can customize compact
error format in your phpstan.neon
:
parameters: compact: format: "{path}:{line}\n ↳ {error}" # default