'Luke Skywalker' === $this->getName() is not relevant, indeed. This why you should not use it for this and only for this.
'Luke Skywalker' === $this->getName()
AFAIK, Symfony rules require yoda condition only if useful.
P.S.: I'm already far far away ! <3
We’re a place for programmers to stay up-to-date, learn new skills, and share ideas.
We’ll never post without your permission.