NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3492 most downloaded on Packagist
Simple error formatter for PHPStan that display code frame
Latest stable
v1.5.0
Last release 2 months ago
19 Sep 2026
Release timing varies
gaps range from 5 weeks to 1.3 years
Most releases are documented
notes for 7 of 9 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
9 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
This release makes type mismatch errors easier to read at a glance!
This release makes type mismatch errors easier to read at a glance!
In messages that pair two types, the expected (declared) type is now shown in green and the actual type in red, while the surrounding text stays uncolored. Long array shapes and generics such as array<int, string> are kept intact, so you can immediately see where one type ends and the other begins.
<img width="800" alt="Expected and actual types highlighted in green and red" src="https://github.com/yamadashy/phpstan-friendly-formatter/releases/download/v1.5.0/type-highlighting.png" />
The rule is simple: green is what the code declares, red is what was actually found. It applies by role, not by position, so in messages like Return type int of Child::m() is not covariant with return type string of Parent::m() the parent's type is still the green one.
Supported messages include:
expects X, Y given (arguments, generator value/key types)should return X but returns Y(X) does not accept Y (properties, default values, class constants, array offsets in tips)invoked with N parameters, M requiredHighlighting is best-effort: messages that don't match a known shape are printed unchanged, and no configuration is needed.
Thanks to @staabm for the suggestion in #13! 🎉
AnalysisResult constructor changes (#49, #54)Full Changelog: https://github.com/yamadashy/phpstan-friendly-formatter/compare/v1.4.0...v1.5.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This release adds CI-detected error formatting and improved summary output!
This release adds CI-detected error formatting and improved summary output!
The error summary has been redesigned with:
<img width="600" height="573" alt="541080636-07de1a29-eeec-4fb6-9013-5595bdaaab01" src="https://github.com/user-attachments/assets/db7dc851-1fc5-469f-a031-0ad91633c07e" />
Thanks to @MatuzMark for this contribution! 🎉
When running in GitHub Actions or TeamCity, the friendly formatter now automatically outputs CI-specific error annotations alongside the friendly output!
This happens automatically when CI is detected - no configuration needed.
Thanks to @marcreichel for this contribution! 🎉
relativePathHelper argument (#32).gitattributes export-ignore entries (#42)Reduced the Composer package size by excluding unnecessary files (.devcontainer/, docs/, playground/, phpunit.xml, etc.) from the distribution archive.
Thanks @sasezaki for this contribution! 🎉
composer update yamadashy/phpstan-friendly-formatter
As always, if you have any issues or suggestions, please let us know on GitHub issues!
Full Changelog: https://github.com/yamadashy/phpstan-friendly-formatter/compare/v1.3.0...v1.4.0
This release adds PHP 8.4/8.5 support and introduces the %%relFile%% placeholder for editor URLs!
This release adds PHP 8.4/8.5 support and introduces the %%relFile%% placeholder for editor URLs!
%%relFile%% Placeholder for Editor URLs (#19)Added %%relFile%% placeholder support, making editor URLs work correctly in Docker/container environments!
Before: Clicking the link opened an incorrect path because PHPStan ran in a container
After: Using %%relFile%% displays the relative file path, which works correctly
parameters:
friendly:
# For Docker environments - use relative path
editorUrl: 'phpstorm://open?file=%%relFile%%&line=%%line%%'
Thanks to @jdreesen for this contribution! 🎉
composer update yamadashy/phpstan-friendly-formatter
As always, if you have any issues or suggestions, please let us know on GitHub issues!
This release adds support for PHPStan 2.0 and includes several improvements to our internal processes.
This release adds support for PHPStan 2.0 and includes several improvements to our internal processes.
We value your feedback and contributions in making phpstan-friendly-formatter better! If you encounter any issues or have suggestions, please share them through our GitHub issues.
Added FallbackHighlighter for improved reliability when PhpConsoleHighlighter is unavailable
This release includes minor improvements to the formatting and readability of error outputs.
This release includes minor improvements to the formatting and readability of error outputs.
This release introduces a new Error Identifier Summary feature and several improvements to the formatting and readability of error outputs.
This release introduces a new Error Identifier Summary feature and several improvements to the formatting and readability of error outputs.
Nothing published for this version
Nothing published for this version
One column per quarter.