File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55- Enh #131 : Throw ` InvalidArgumentException ` when missed "one" plural key (@vjik )
66- Bug #132 : Fix incorrect locale usage when category source is not exist and specified fallback locale (@vjik )
7+ - Bug #148 : Fix the nullable parameter declarations for compatibility with PHP 8.4 (@martio )
78
89## 3.0.0 February 17, 2023
910
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ public function getLocale(): string
7272 public function translate (
7373 string |Stringable $ id ,
7474 array $ parameters = [],
75- string $ category = null ,
76- string $ locale = null
75+ ? string $ category = null ,
76+ ? string $ locale = null
7777 ): string {
7878 $ locale ??= $ this ->locale ;
7979
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ public function getLocale(): string;
4646 public function translate (
4747 string |Stringable $ id ,
4848 array $ parameters = [],
49- string $ category = null ,
50- string $ locale = null
49+ ? string $ category = null ,
50+ ? string $ locale = null
5151 ): string ;
5252
5353 /**
You can’t perform that action at this time.
0 commit comments