Skip to content

Drop cheaper-guard ignore, rely on fixed rule (14.13.1) - #392

Merged
TomasVotruba merged 2 commits into
mainfrom
move-cheaper-guard-ignore-to-neon
Aug 29, 2026
Merged

Drop cheaper-guard ignore, rely on fixed rule (14.13.1)#392
TomasVotruba merged 2 commits into
mainfrom
move-cheaper-guard-ignore-to-neon

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Aug 29, 2026

Copy link
Copy Markdown
Member

The false positive is now fixed at the source in symplify/phpstan-rules 14.13.1 (symplify/phpstan-rules#281): the rule no longer flags a guard when the anchor has side effects. The inline @PHPStan-Ignore added in #391 is removed entirely (no neon ignore needed), and the constraint is bumped to ^14.13.1. PHPStan green.

@TomasVotruba TomasVotruba changed the title Move cheaper-guard ignore from inline annotation to phpstan.neon Drop cheaper-guard ignore, rely on fixed rule (14.13.1) Aug 29, 2026
@TomasVotruba
TomasVotruba merged commit a3ba7ce into main Aug 29, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the move-cheaper-guard-ignore-to-neon branch August 29, 2026 17:48
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