@@ -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