grifart/phpstan-oneline

PHPStan compact error formatter

Maintainers

πŸ‘ jkuchar

Package info

github.com/grifart/phpstan-oneline

Type:phpstan-extension

pkg:composer/grifart/phpstan-oneline

Statistics

Installs: 508 021

Dependents: 13

Suggesters: 0

Stars: 24

Open Issues: 2

v0.5.0 2024-12-03 12:30 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT aba848144beb4894facb64c27fafd27efe84fbfb

  • Jan KuchaΕ™ <honza.kuchar.woop@grifart.cz>

This package is auto-updated.

Last update: 2026-06-29 01:34:59 UTC


README

πŸ‘ 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

πŸ‘ Image

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

  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

πŸ‘ Image

You can customize compact error format in your phpstan.neon:

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