Skip to content

Simplify duplicate return guards in ClassNameImportSkipper::isConflictingClassLikeName() - #8840

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-simplify-conflicting-class-like-name
Oct 25, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-simplify-conflicting-class-like-name

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Collapse two consecutive return true guards into a single condition. No behavior change: a '' namespace or a mismatching namespace still both short-circuit to true.

rules-tests/CodingStyle pass; ECS and PHPStan level 8 clean.

@TomasVotruba
TomasVotruba merged commit 4d61130 into main Oct 25, 2026
48 of 49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-simplify-conflicting-class-like-name branch October 25, 2026 22:57
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