Skip to content
This repository was archived by the owner on Jul 26, 2021. It is now read-only.

Commit 1ce90ba

Browse files
loilosebastianbergmann
authored andcommitted
Backport "use function" fix to 1.4
1 parent 958103f commit 1ce90ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Token/Stream.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ protected function scan($sourceCode)
176176
$name = 'CLASS_NAME_CONSTANT';
177177
} elseif ($name == 'USE' && isset($tokens[$i+2][0]) && $tokens[$i+2][0] == T_FUNCTION) {
178178
$name = 'USE_FUNCTION';
179+
$text .= $tokens[$i+1][1] . $tokens[$i+2][1];
179180
$skip = 2;
180181
}
181182

0 commit comments

Comments
 (0)