'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 where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.