grifart/phpstan-oneline
Composer 安装命令:
composer require grifart/phpstan-oneline
包简介
PHPStan compact error formatter
README 文档
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
统计信息
- 总下载量: 508.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 7
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-05

