While working on a project with Cakephp 4, our team has PHP Code sniffing rules set to use the cakephp-codesniffer
ruleset.
I was cleaning up some code that was generated by baking, (a Table class) and replaced the FQN in the doc blocks with a use statement to import the needed class. It bugs me seeing all of the repeated code. After I had made my changes I ran the code sniffing tool and received the following error.
ERROR | [x] Class name \Countries\Model\Entity\Country in @method should be referenced via a fully qualified name.
So my question is, Why is this a requirement when a use statement works just as well?