Skip to content

Commit a06179f

Browse files
committed
PhpParser: token_get_all() uses flag TOKEN_PARSE
1 parent a65fa39 commit a06179f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeCoverage/PhpParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PhpParser
5353
*/
5454
public function parse(string $code): \stdClass
5555
{
56-
$tokens = @token_get_all($code); // @ - source code can be written in newer PHP
56+
$tokens = token_get_all($code, TOKEN_PARSE);
5757

5858
$level = $classLevel = $functionLevel = null;
5959
$namespace = '';

0 commit comments

Comments
 (0)