NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #1927 most downloaded on Packagist
Simple error formatter for PHPStan that display code frame
Last release 18 days 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
3 years old
9 releases · first in 2023
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.
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! 🎉
Full Changelog: v1.4.0...v1.5.0
One column per quarter.
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:
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-formatterAs always, if you have any issues or suggestions, please let us know on GitHub issues!
Full Changelog: 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-formatterAs 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 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
Your coding agent can read these notes before it upgrades. Set up the MCP server →