Skip to content

Declare the parser flags read by reference - #8

Merged
smnandre merged 1 commit into
altophp:mainfrom
smnandre:fix/phpstan
Nov 30, 2026
Merged

smnandre merged 1 commit into
altophp:mainfrom
smnandre:fix/phpstan

Conversation

@smnandre

Copy link
Copy Markdown
Contributor

PHPStan 2.3.7 reports eight closure.unusedUse in UnifiedParser: it narrowed the flags and counters shared with the closures by reference to their initial values, so the closure body looked unreachable. Their types are now declared, and the two @phpstan-ignore-next-line comments that hid the same problem are gone.

@smnandre
smnandre merged commit 8cd40e0 into altophp:main Nov 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant