Closed maxailloud closed 7 years ago
Dumb question, is the leading \
necessary? I assume the answer is PHPDoc reads from the same namespace as the executing PHP code does, and since we don't have a use
statement and we are in a different namespace, PHPDoc sees this as \OAuth2\Controller\OAuth2\GrantType\ClientCredentials
(for instance)
In PHPStorm not putting the leading \
gives me an error.
And rightfully as the class \OAuth2\Controller\OAuth2\GrantType\ClientCredentials
doesn't exist, but \OAuth2\GrantType\ClientCredentials
does.
If you use use
, you don't need the preceding \
.
Yes but importing a class just for the PHPDoc is pointless. It's just updating the namespace of the classes use in the PHPDoc to have the real namespace.
Yeah. Sorry. I think that made some of you think that I actually care. :p
Basically just some PHPDoc fix.