We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b7bdb3 commit c73f456Copy full SHA for c73f456
src/Tokenizers/PHP.php
@@ -1786,22 +1786,6 @@ function return types. We want to keep the parenthesis map clean,
1786
&& is_array($tokens[$x]) === false
1787
&& $tokens[$x] === ':'
1788
) {
1789
- $allowed = [
1790
- T_STRING => T_STRING,
1791
- T_NAME_FULLY_QUALIFIED => T_NAME_FULLY_QUALIFIED,
1792
- T_NAME_RELATIVE => T_NAME_RELATIVE,
1793
- T_NAME_QUALIFIED => T_NAME_QUALIFIED,
1794
- T_ARRAY => T_ARRAY,
1795
- T_CALLABLE => T_CALLABLE,
1796
- T_SELF => T_SELF,
1797
- T_PARENT => T_PARENT,
1798
- T_NAMESPACE => T_NAMESPACE,
1799
- T_STATIC => T_STATIC,
1800
- T_NS_SEPARATOR => T_NS_SEPARATOR,
1801
- ];
1802
-
1803
- $allowed += Util\Tokens::$emptyTokens;
1804
1805
// Find the start of the return type.
1806
for ($x += 1; $x < $numTokens; $x++) {
1807
if (is_array($tokens[$x]) === true
0 commit comments