We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a65fa39 commit a06179fCopy full SHA for a06179f
src/CodeCoverage/PhpParser.php
@@ -53,7 +53,7 @@ class PhpParser
53
*/
54
public function parse(string $code): \stdClass
55
{
56
- $tokens = @token_get_all($code); // @ - source code can be written in newer PHP
+ $tokens = token_get_all($code, TOKEN_PARSE);
57
58
$level = $classLevel = $functionLevel = null;
59
$namespace = '';
0 commit comments