File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,27 +14,28 @@ jobs:
1414 strategy :
1515 matrix :
1616 php :
17- - 7.2
18- - 7.3
19- - 7.4
20- - 8.0
21- - 8.1
22- - 8.2
23- - 8.3
24- - 8.4
17+ - " 7.2"
18+ - " 7.3"
19+ - " 7.4"
20+ - " 8.0"
21+ - " 8.1"
22+ - " 8.2"
23+ - " 8.3"
24+ - " 8.4"
25+ - " 8.5"
2526 fail-fast : false
2627
2728 steps :
2829 - name : Checkout
29- uses : actions/checkout@v4
30+ uses : actions/checkout@v6
3031
3132 - name : Install PHP
3233 uses : shivammathur/setup-php@v2
3334 with :
3435 php-version : ${{ matrix.php }}
3536
3637 - name : Cache PHP dependencies
37- uses : actions/cache@v4
38+ uses : actions/cache@v5
3839 with :
3940 path : vendor
4041 key : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Original file line number Diff line number Diff line change @@ -76,8 +76,10 @@ public function generateArray(Translations $translations): array
7676 if (self ::hasPluralTranslations ($ translation )) {
7777 $ messages [$ context ][$ original ] = $ translation ->getPluralTranslations ($ pluralSize );
7878 array_unshift ($ messages [$ context ][$ original ], $ translation ->getTranslation ());
79+ } elseif ($ pluralSize !== null && $ pluralSize > 1 && (string ) $ translation ->getPlural () !== '' ) {
80+ $ messages [$ context ][$ original ] = array_fill (0 , $ pluralSize , '' );
7981 } else {
80- $ messages [$ context ][$ original ] = $ translation ->getTranslation ();
82+ $ messages [$ context ][$ original ] = ( string ) $ translation ->getTranslation ();
8183 }
8284 }
8385
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public function testArrayGeneratorWithEmptyTranslations()
6666 'messages ' => [
6767 '' => [
6868 'Empty translation included ' => '' ,
69- 'Inexistent translation included ' => null ,
69+ 'Inexistent translation included ' => '' ,
7070 ],
7171 ],
7272 ];
You can’t perform that action at this time.
0 commit comments