Skip to content

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

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)#778
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 whose variable is mutated by-reference inside the anchor's closure. The inline @PHPStan-Ignore added in #777 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 c4e571e into main Aug 29, 2026
7 checks passed
@TomasVotruba
TomasVotruba deleted the move-cheaper-guard-ignore-to-neon branch August 29, 2026 17:48
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

Development

Successfully merging this pull request may close these issues.

1 participant