Skip to content

Reuse RectorCheaperGuardsFirstRule from symplify/phpstan-rules - #8404

Merged
TomasVotruba merged 3 commits into
mainfrom
reuse-cheaper-guards-first-from-symplify
Aug 29, 2026
Merged

Reuse RectorCheaperGuardsFirstRule from symplify/phpstan-rules#8404
TomasVotruba merged 3 commits into
mainfrom
reuse-cheaper-guards-first-from-symplify

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The CheaperGuardFirstRule PHPStan rule moved to symplify/phpstan-rules (rector rule set) as RectorCheaperGuardsFirstRule, released in 14.13.0. It is useful for anyone writing custom Rector rules, not just this repo.

This PR:

  • bumps symplify/phpstan-rules to ^14.13
  • drops the local CheaperGuardFirstRule + its tests
  • the rule now loads via the shared rector-rules.neon set already included in phpstan.neon

composer phpstan stays green.

The rule moved to symplify/phpstan-rules (rector set) in 14.13.0, where it is
useful for anyone writing custom Rector rules. Drop the local copy and pull it
in via the shared rector-rules.neon set.

Claude-Session: https://claude.ai/code/session_01Na4eYvNqa2pdhZrBXbegrv
@TomasVotruba
TomasVotruba merged commit 6af747a into main Aug 29, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the reuse-cheaper-guards-first-from-symplify branch August 29, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant