Skip to content

PHPCS: EnforceYodaComparisonSniff - #160

Merged
adamziel merged 1 commit into
trunkfrom
enforce-yoda
Sep 5, 2025
Merged

adamziel merged 1 commit into
trunkfrom
enforce-yoda

Conversation

@adamziel

@adamziel adamziel commented Sep 5, 2025

Copy link
Copy Markdown
Collaborator

Based on SlevomatCodingStandard.ControlStructures.DisallowYodaComparison but it's doing the opposite – it enforces Yoda conditions via phpcbf.

Related to #157

@adamziel
adamziel merged commit a615018 into trunk Sep 5, 2025
@adamziel
adamziel deleted the enforce-yoda branch September 5, 2025 12:31
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