Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 4, 2024
1 parent 9053d12 commit a492556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ public function tokenize(string $string): Cursor

$lastMatchesNamedGroup = self::$tokenizeRegex[1][array_key_last($matches)];
assert(str_starts_with($lastMatchesNamedGroup, 't_'));
/** @var Token::TOKEN_TYPE_* $tokenType */
$tokenType = (int) substr($lastMatchesNamedGroup, 2);

$token = new Token($tokenType, substr($string, $offset, strlen($matches[0])));
Expand Down

0 comments on commit a492556

Please sign in to comment.