Fix #20542: Fix Formatter working with more complex ICU unit data structure

This commit is contained in:
Ondřej Vašíček
2025-09-30 00:18:55 +02:00
committed by GitHub
parent dba9e4d76d
commit 0eee39302a
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Yii Framework 2 Change Log
2.0.54 under development
------------------------
- Bug #20542: Fix `Formatter` working with more complex ICU unit data structure (OndrejVasicek)
- Bug #20483: Fix `CompositeAuth` making bad assumptions on `AuthInterface` implementations (sammousa)
- Bug #20432: Fix PHPStan/Psalm annotations for `ActiveQuery::asArray` (max-s-lab)
- Bug #20437: Fix PHPStan/Psalm annotations for `BaseArrayHelper::merge` (max-s-lab)

View File

@ -1679,7 +1679,7 @@ class Formatter extends Component
$message = [];
foreach ($unitBundle as $key => $value) {
if ($key === 'dnam') {
if ($key === 'dnam' || $key === 'case') {
continue;
}
$message[] = "$key{{$value}}";