Skip to content

Commit c73f456

Browse files
committed
Removed dead code
1 parent 2b7bdb3 commit c73f456

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Tokenizers/PHP.php

-16
Original file line numberDiff line numberDiff line change
@@ -1786,22 +1786,6 @@ function return types. We want to keep the parenthesis map clean,
17861786
&& is_array($tokens[$x]) === false
17871787
&& $tokens[$x] === ':'
17881788
) {
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-
18051789
// Find the start of the return type.
18061790
for ($x += 1; $x < $numTokens; $x++) {
18071791
if (is_array($tokens[$x]) === true

0 commit comments

Comments
 (0)