Skip to content

Commit

Permalink
PhpParser: token_get_all() uses flag TOKEN_PARSE
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 13, 2018
1 parent a65fa39 commit a06179f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeCoverage/PhpParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PhpParser
*/
public function parse(string $code): \stdClass
{
$tokens = @token_get_all($code); // @ - source code can be written in newer PHP
$tokens = token_get_all($code, TOKEN_PARSE);

$level = $classLevel = $functionLevel = null;
$namespace = '';
Expand Down

0 comments on commit a06179f

Please sign in to comment.