PHPStan compact error formatter

v0.3.2 2020-01-30 14:56 UTC

This package is auto-updated.

Last update: 2020-09-30 01:55:30 UTC


Latest Stable Version Total Downloads License Build Status

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!


composer require --dev grifart/phpstan-oneline

and register error formatter into your phpstan.neon:

	- vendor/grifart/phpstan-oneline/config.neon

Clickable paths in PhpStorm

  1. Install Awesome Console (available in PhpStorm repositories)
  2. 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:

		format: "{path}:{line}\n ↳ {error}" # default