-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed as not planned
Description
Description
The following code:
<?php declare(strict_types=1);
$formatter = new \MessageFormatter('en', "Quoting problem '{replace}'\n");
echo $formatter->format(['replace' => 'REPLACEMENT']);
Resulted in this output:
Quoting problem {replace}
But I expected this output instead:
Quoting problem 'REPLACEMENT'
Whats also not working is "Quoting problem '{replace}\n"
It works with "Quoting problem {replace}'\n"
or with no or double quotes.
PHP Version
PHP 8.2.26, ICU version 72.1
Operating System
Debian 12