ticketswap/phpstan-error-formatter
Minimalistic PHPStan error formatter with per-error clickable file/line links, non-wrapping output, naive syntax highlighting, and visually truncated long paths while preserving links. Easy install via Composer; set PHPStan errorFormat to ticketswap.
@param docblocks for native types (e.g., string, int), reducing noise in PRs and codebases. Supports PHP 8+ migration goals by enforcing cleaner annotations.Adopt when:
@param docblocks for native types, cluttering PRs or documentation.file:// URL fallbacks.Look elsewhere if:
file:// URL fallbacks (though readability improvements remain).editorUrl (e.g., for PhpStorm/VS Code).*"This is a 10-minute fix that will cut debugging time by 30–50% and eliminate PHPStan adoption friction. By making static analysis errors visually clear and clickable, we’ll:
*"This replaces clunky PHPStan output with a modern, terminal-friendly format that:
grep or manual file searches.@param docblocks, reducing noise in PRs.
Setup is trivial (5–10 mins for config), and it’s backed by the PHPStan community. Let’s standardize this to eliminate custom error scripts and boost DX."*"Tired of PHPStan’s wrapped, unclickable error tables? This formatter:
✅ Puts each error on one line (no more scrolling through tables).
✅ Makes variables/FQCNs stand out with naive highlighting.
✅ Lets you click file/line links in VS Code/PhpStorm to fix issues instantly.
✅ Works in CI without breaking anything.
Just add errorFormat: ticketswap to your PHPStan config—it’s faster, cleaner, and more actionable than the default. Zero trade-offs."
How can I help you explore Laravel packages today?