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.
{
1 parent aaa5c9d commit c8a303cCopy full SHA for c8a303c
src/Translator/src/MessageParameters/Extractor/IntlMessageParametersExtractor.php
@@ -23,6 +23,11 @@ final class IntlMessageParametersExtractor implements ExtractorInterface
23
24
public function extract(string $message): array
25
26
+ // Early return if there is no parameter-like pattern in the message
27
+ if (!str_contains($message, '{')) {
28
+ return [];
29
+ }
30
+
31
$parameters = [];
32
33
$intlMessageParser = new IntlMessageParser($message);
0 commit comments