We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
->slice($offset, 1)
1 parent 18eac63 commit 0bf9041Copy full SHA for 0bf9041
src/Translator/src/Intl/IntlMessageParser.php
@@ -12,6 +12,7 @@
12
namespace Symfony\UX\Translator\Intl;
13
14
use Symfony\Component\String\AbstractString;
15
+
16
use function Symfony\Component\String\s;
17
18
/**
@@ -883,7 +884,7 @@ private function char(): int
883
884
throw new \OutOfBoundsException();
885
}
886
- $code = $this->message->slice($offset, 1)->codePointsAt(0)[0] ?? null;
887
+ $code = $this->message->codePointsAt($offset)[0] ?? null;
888
if (null === $code) {
889
throw new \Exception("Offset {$offset} is at invalid UTF-16 code unit boundary");
890
0 commit comments