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.
2 parents 4f44e8e + bb15f00 commit c812b14Copy full SHA for c812b14
src/PhpTokenizer.php
@@ -75,7 +75,7 @@ public static function getTokensArrayFromContent(
75
$pos += $strlen;
76
77
if ($parseContext !== null && !$passedPrefix) {
78
- $passedPrefix = \count($prefix) < $pos;
+ $passedPrefix = \strlen($prefix) < $pos;
79
if ($passedPrefix) {
80
$fullStart = $start = $pos = $initialPos;
81
}
0 commit comments