Skip to content

Remove isset() check that always passes, reported by PHPStan 2.4 - #864

Merged
TomasVotruba merged 2 commits into
mainfrom
phpstan-2-4-compat
Dec 4, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
phpstan-2-4-compat

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member
  • $variablesToMethodCalls only gets $variableName key and is non-empty at this point, so the isset() check always passes
  • PHPStan 2.4 reports it as isset.offset, it breaks rector-src packages_tests

@TomasVotruba
TomasVotruba merged commit 890a955 into main Dec 4, 2026
15 checks passed
@TomasVotruba
TomasVotruba deleted the phpstan-2-4-compat branch December 4, 2026 09:49
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.

2 participants