Skip to content

2.3.0

Latest

Choose a tag to compare

@JanTvrdik JanTvrdik released this 08 Dec 10:53
· 6 commits to master since this release
b997803

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"
         ]
     }
 }