Skip to content

Releases: shipmonk-rnd/phpstan-baseline-per-identifier

2.3.0

08 Dec 10:53
b997803

Choose a tag to compare

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-baseline command now automatically deletes baseline files that no longer have corresponding errors.
    • You can remove any manual deletion step from your scripts:
 {
     "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"
         ]
     }
 }

2.2.0

12 Sep 10:29
a096ae6

Choose a tag to compare

New features:

2.1.6

10 Apr 14:21
84ee6e3

Choose a tag to compare

Improvements

  • Add --no-error-count CLI option to remove error counts from baselines (#39, @maxime-vf)

2.1.5

17 Mar 08:55
2b3d016

Choose a tag to compare

Improvements:

2.1.4

12 Feb 11:58
ea49c59

Choose a tag to compare

Fixes:

  • PHP baseline: fix result cache invalidation upon manual edit (#35, @gharlan)

2.1.3

21 Jan 12:13
8f920df

Choose a tag to compare

Fixes:

2.1.2

31 Dec 11:09
3635758

Choose a tag to compare

Fixes:

2.1.1

13 Dec 09:14
cb4a3e4

Choose a tag to compare

Fixes:

  • Non-legacy approach does not need neon config (#24)

2.1.0

08 Dec 10:09
800aa0e

Choose a tag to compare

New features

2.0.0

22 Nov 12:54
0b60660

Choose a tag to compare

Major changes

  • Preferred approach changed (#10)
    • Use vendor/bin/split-phpstan-baseline instead of --error-format
    • Script approach can utilize PHPStan's result cache!

New features

  • Support PHP baselines (#12)
    • Just use baselines/loader.php instead of baselines/loader.neon

Dependencies

  • requires phpstan/phpstan 2.0 (#8)