Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use yoda comparison #549

Closed
wants to merge 1 commit into from
Closed

Conversation

OskarStark
Copy link

No description provided.

@lcobucci
Copy link
Member

@OskarStark thanks, but we're discussion about REMOVING yoda expressions everywhere: doctrine/coding-standard@e36b367#diff-1d794c8c2cf3bf4d562ddaea8be99bb0R131

@OskarStark
Copy link
Author

Why? 👀

@Majkl578
Copy link
Contributor

You can find some reasoning and other rules in the doctrine/coding-standard#9 - it's still just a proposal for comments, not accepted CS.
@greg0ire wrote an article about uselessness of Yoda conditions: Why using Yoda conditions you should probably not be

@greg0ire
Copy link
Member

Couldn't agree more of course, but some people like whoever that "@Ocramius" guy is do not: https://www.reddit.com/r/PHP/comments/6rl40r/comment/dl6topg
Probably just some random n00b though :P

@OskarStark OskarStark changed the title use yoda compariosn use yoda comparison Sep 22, 2017
@OskarStark
Copy link
Author

Feel free to reopen if you need it :)

@OskarStark OskarStark closed this Sep 27, 2017
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.

4 participants