-
Notifications
You must be signed in to change notification settings - Fork 165
Closed
Labels
proposalNew rule proposalNew rule proposal
Description
Rule
Use Yoda Conditions to avoid assignments inside a condition statement.
Reason
With Yoda Conditions it is not possible to assign a variable inside a condition statement, which improves the code quality because it prevents possible assignment errors.
Implementation
Some other Frameworks, such as Symfony, are using Yoda Conditions and have checks for them.
Metadata
Metadata
Assignees
Labels
proposalNew rule proposalNew rule proposal