Permalink
Browse files

PhpParser: token_get_all() uses flag TOKEN_PARSE

  • Loading branch information...
dg committed Aug 7, 2018
1 parent a65fa39 commit a06179f1ac5c92249c16a770bec21d6fb49b6071
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 src/CodeCoverage/PhpParser.php
@@ -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 = '';

0 comments on commit a06179f

Please sign in to comment.