We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In case:
use function \array_keys
backslash is tokenized as T_STRING.
T_STRING
use function \MyNamespace\myFunction;
first backslash is tokenzed as T_STRING and the second one as T_NS_SEPARATOR.
T_NS_SEPARATOR
If we import class:
use \DateTime;
or global constant:
use const \PHP_VERSION_ID;
or constant from other namespace:
use const \MyNamespace\MY_CONST;
all backslashes are tokenized as T_NS_SEPARATOR.
I would expect then the same behaviour for importing functions, so all backlashes should be there always tokenized as T_NS_SEPARATOR.
The text was updated successfully, but these errors were encountered:
Changelog for #1547
6f42a49
Fixed via PR #1548
Sorry, something went wrong.
Require PHPCS 3.0.2 as minimum because of squizlabs/PHP_CodeSniffer#1547
696eaf5
No branches or pull requests
In case:
backslash is tokenized as
T_STRING
.In case:
first backslash is tokenzed as
T_STRING
and the second one asT_NS_SEPARATOR
.If we import class:
or global constant:
or constant from other namespace:
all backslashes are tokenized as
T_NS_SEPARATOR
.I would expect then the same behaviour for importing functions, so all backlashes should be there always tokenized as
T_NS_SEPARATOR
.The text was updated successfully, but these errors were encountered: