Skip to content

Commit a848722

Browse files
committed
fabot
1 parent d9b5613 commit a848722

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/TwigComponent/src/Twig/TwigPreLexer.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private function consumeComponentName(?string $customExceptionMessage = null): s
203203
{
204204
if (preg_match('/\G[A-Za-z0-9_:@\-.]+/', $this->input, $matches, 0, $this->position)) {
205205
$componentName = $matches[0];
206-
$this->position += strlen($componentName);
206+
$this->position += \strlen($componentName);
207207

208208
return $componentName;
209209
}
@@ -280,7 +280,8 @@ private function consumeAttributes(string $componentName): string
280280
private function consume(string $string): bool
281281
{
282282
if (str_starts_with(substr($this->input, $this->position), $string)) {
283-
$this->position += strlen($string);
283+
$this->position += \strlen($string);
284+
284285
return true;
285286
}
286287

@@ -330,7 +331,7 @@ private function consumeWhitespace(): void
330331
{
331332
$whitespace = substr($this->input, $this->position, strspn($this->input, " \t\n\r\0\x0B", $this->position));
332333
$this->line += substr_count($whitespace, "\n");
333-
$this->position += strlen($whitespace);
334+
$this->position += \strlen($whitespace);
334335
}
335336

336337
/**
@@ -355,8 +356,8 @@ private function expectAndConsumeChar(string $char): void
355356

356357
private function check(string $chars): bool
357358
{
358-
return $this->position + strlen($chars) <= $this->length
359-
&& 0 === substr_compare($this->input, $chars, $this->position, strlen($chars));
359+
return $this->position + \strlen($chars) <= $this->length
360+
&& 0 === substr_compare($this->input, $chars, $this->position, \strlen($chars));
360361
}
361362

362363
private function consumeBlock(string $componentName): string

0 commit comments

Comments
 (0)