Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Baseline Per Identifier Laravel Package

shipmonk/phpstan-baseline-per-identifier

Split a PHPStan baseline into multiple NEON files grouped by error identifier, with a loader include. Generate baseline as usual, then run split-phpstan-baseline to organize ignores per identifier for easier reviews and maintenance.

View on GitHub
Deep Wiki
Context7
2.3.0

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

New features:

2.1.6

Improvements

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

Improvements:

  • Add the total error count in the loader (#38, @Ph0tonic)
2.1.4

Fixes:

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

Fixes:

  • Fix error count in comment (#33, @Ph0tonic)
2.1.2

Fixes:

2.1.1

Fixes:

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

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)
1.0.0

Initial release

  • Error formatter that allows to split your PHPStan baselines to multiple files:
baselines/
 ├─ loader.neon
 ├─ empty.notAllowed.neon
 ├─ foreach.nonIterable.neon
 ├─ identical.alwaysFalse.neon
 └─ if.condNotBoolean.neon
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation