shipmonk/phpstan-baseline-per-identifier
Split your PHPStan baseline into multiple files, one per error identifier. Supports both neon baseline and PHP baseline.
2.3.0
2.1M downloads/mo
#1753 most downloaded on Packagist
shipmonk-rnd/phpstan-baseline-per-identifier
What this package is like to depend on
Last release 8 months ago
08 Dec 2025
Release timing varies
gaps range from 2 weeks to 5 months
Nearly every release is documented
notes for 10 of 11 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
11 releases · first in 2024
2 releases in the last 12 months
see the full history below
Release timeline
11 releases · Oct 2024 to Dec 2025
2025
2026
Releases
latest 11-
2.3.008 Dec 2025Release notes
Open source →New features
- Minimal diff when regenerating baselines (#52)
- When regenerating baseline files, the order of existing errors is now preserved.
- New errors are inserted at their sorted position among existing entries.
- This results in smaller diffs when committing updated baselines, making code reviews easier.
- Automatic cleanup of orphaned baseline files (#53)
- The
split-phpstan-baselinecommand now automatically deletes baseline files that no longer have corresponding errors. - You can remove any manual deletion step from your scripts:
- The
{ "scripts": { "generate:baseline:phpstan": [ "phpstan --generate-baseline=baselines/_loader.neon", - "find baselines/ -type f -not -name _loader.neon -delete", "split-phpstan-baseline baselines/_loader.neon" ] } } - Minimal diff when regenerating baselines (#52)
-
2.2.011 Sep 2025Release notes
Open source →New features:
- Support
rawMessage(#47 by @gharlan)- Used in baselines of bleedingEdge PHPStan since 2.1.24
- Support
-
2.1.610 Apr 2025Release notes
Open source →Improvements
- Add
--no-error-countCLI option to remove error counts from baselines (#39, @maxime-vf)
- Add
-
2.1.517 Mar 2025 -
2.1.412 Feb 2025Release notes
Open source → -
2.1.320 Jan 2025 -
2.1.231 Dec 2024 -
2.1.113 Dec 2024 -
2.1.008 Dec 2024 -
2.0.022 Nov 2024Release notes
Open source →Major changes
- Preferred approach changed (#10)
- Use
vendor/bin/split-phpstan-baselineinstead of--error-format - Script approach can utilize PHPStan's result cache!
- Use
New features
- Support PHP baselines (#12)
- Just use
baselines/loader.phpinstead ofbaselines/loader.neon
- Just use
Dependencies
- requires
phpstan/phpstan 2.0(#8)
- Preferred approach changed (#10)
-
1.0.003 Oct 2024Nothing published for this version