One should not reference fully qualified namespaces but always import.
This:
use YadaYada\FooException;
use YadaYada\Foo;
/** @throws FooException */
/** @param Foo */
function (Foo $foo) {}
Not that:
/** @throws \YadaYada\FooException */
/** @param \YadaYada\Foo */
function (\YadaYada\Foo $foo) {}
… and many more cases. Straight from my head:
@throws
@param
@return
- Type hints in function/method/closure signatures
- Type hints in return values
implements/extends
new statement
- …
We should still allow for partial use statements thow:
use Doctrine\ORM\Annotations as ORM;
/** @ORM\Foo() */
One should not reference fully qualified namespaces but always import.
This:
Not that:
… and many more cases. Straight from my head:
@throws@param@returnimplements/extendsnewstatementWe should still allow for partial use statements thow: