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

Commit

Permalink
Serialize use function tokens correctly, fixes #69
Browse files Browse the repository at this point in the history
  • Loading branch information
loilo authored and sebastianbergmann committed Nov 26, 2017
1 parent 7aad36c commit cab905e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Token/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ protected function scan($sourceCode)
$name = 'CLASS_NAME_CONSTANT';
} elseif ($name == 'USE' && isset($tokens[$i + 2][0]) && $tokens[$i + 2][0] == T_FUNCTION) {
$name = 'USE_FUNCTION';
$text .= $tokens[$i + 1][1] . $tokens[$i + 2][1];
$skip = 2;
}

Expand Down

0 comments on commit cab905e

Please sign in to comment.