fix: replace substr with mb_substr in Str::beforeLast to ensure multibyte string compatibility and correct TeamCity test names for datasets in "describe" blocks

This commit is contained in:
Ilia Smirnov
2026-01-14 00:55:35 +01:00
parent df3205e814
commit c7e4efcea4
4 changed files with 15 additions and 5 deletions

View File

@ -79,7 +79,7 @@ final class Str
return $subject;
}
return substr($subject, 0, $pos);
return mb_substr($subject, 0, $pos);
}
/**