From 80a816d8492333bb5dfcc4c7d6fce6def31407b1 Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 11 Mar 2026 16:38:25 +0400 Subject: [PATCH] Allow cyrillic letters in Lexer.php Allows cyrillic properties which works for xml. --- src/Type/Lexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/Lexer.php b/src/Type/Lexer.php index 80dd048db..50aeeab5b 100644 --- a/src/Type/Lexer.php +++ b/src/Type/Lexer.php @@ -36,7 +36,7 @@ public function parse(string $type) protected function getCatchablePatterns(): array { return [ - '[a-z][a-z_\\\\0-9]*', // identifier or qualified name + '[a-z][a-z_\\\\0-9\\x{0400}-\\x{04FF}]*', // identifier or qualified name "'(?:[^']|'')*'", // single quoted strings '(?:[0-9]+(?:[\.][0-9]+)*)(?:e[+-]?[0-9]+)?', // numbers '"(?:[^"]|"")*"', // double quoted strings