Closed wppunk closed 3 years ago
Basically, use the use statement instead of a long declaration.
use
\func( ... )
\DateTime( ... )
Incorrect:
namespace Test; \func( ... ) \some\namespace\func2( ... ); \DateTime( ... ) \Some\Name\Space\Example() \Some\Name\Space\Example2::class
Correct:
namespace Test; use Some\Name\Space\Example; use Some\Name\Space\Example2; use function some\name\space\func2; func(); func2(); DateTime(); Example::class;
Description
Basically, use the
use
statement instead of a long declaration.\func( ... )
or\DateTime( ... )
- are incorrect.Tested code
Incorrect:
Correct: