File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -1786,22 +1786,6 @@ function return types. We want to keep the parenthesis map clean,
1786
1786
&& is_array ($ tokens [$ x ]) === false
1787
1787
&& $ tokens [$ x ] === ': '
1788
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
1789
// Find the start of the return type.
1806
1790
for ($ x += 1 ; $ x < $ numTokens ; $ x ++) {
1807
1791
if (is_array ($ tokens [$ x ]) === true
You can’t perform that action at this time.
0 commit comments