Skip to content

Move two perf PHPStan rules to symplify/phpstan-rules rector set - #8677

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-move-perf-rules-to-symplify
Oct 16, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
tv-move-perf-rules-to-symplify

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Moves two internal PHPStan rules from utils/phpstan into the shared symplify/phpstan-rules rector set, so every rector package picks them up, not just rector-src:

  • NoScopeFetchBeforeCheapGuardRule
  • NarrowReturnToUnionParamRule

Upstream PR: symplify/phpstan-rules#375

RegisterRelatedPolyfillRectorRule stays here - it is rector-src specific (depends on the config/set/php-polyfills.php set, which only rector/rector ships).

Follow-up: once the upstream PR is released, bump the symplify/phpstan-rules constraint so the rules run again via the shared set.

@TomasVotruba
TomasVotruba merged commit 0b5f9fc into main Oct 16, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-move-perf-rules-to-symplify branch October 16, 2026 09:59
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