@@ -134,6 +134,7 @@ public function addLines(string $locale, string $file, array $lines) : static
134134 */
135135 public function currency (float $ value , string $ currency , string $ locale = null ) : string
136136 {
137+ // @phpstan-ignore-next-line
137138 return \NumberFormatter::create (
138139 $ locale ?? $ this ->getCurrentLocale (),
139140 \NumberFormatter::CURRENCY
@@ -157,7 +158,8 @@ public function date(int $time, string $style = null, string $locale = null) : s
157158 throw new InvalidArgumentException ('Invalid date style format: ' . $ style );
158159 }
159160 $ style = $ style ?: 'short ' ;
160- return (string ) \MessageFormatter::formatMessage (
161+ // @phpstan-ignore-next-line
162+ return \MessageFormatter::formatMessage (
161163 $ locale ?? $ this ->getCurrentLocale (),
162164 "{time, date, {$ style }} " ,
163165 ['time ' => $ time ]
@@ -394,7 +396,8 @@ public function lang(string $line, array $args = [], string $locale = null) : ?s
394396 */
395397 public function ordinal (int $ number , string $ locale = null ) : string
396398 {
397- return (string ) \MessageFormatter::formatMessage (
399+ // @phpstan-ignore-next-line
400+ return \MessageFormatter::formatMessage (
398401 $ locale ?? $ this ->getCurrentLocale (),
399402 '{number, ordinal} ' ,
400403 ['number ' => $ number ]
0 commit comments