DEV Community

loading...

Discussion on: Why using Yoda conditions you should probably not be

Collapse
soullivaneuh profile image
Sullivan SENECHAL

'Luke Skywalker' === $this->getName() is not relevant, indeed. This why you should not use it for this and only for this.

AFAIK, Symfony rules require yoda condition only if useful.

P.S.: I'm already far far away ! <3