Skip to content

Commit a12b11b

Browse files
committed
Fix PHP 8.5 setlocale
1 parent 3a7a3b5 commit a12b11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Locale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trait Locale
1313
public static function runLocaleAware(int $category, string $locale, Closure $callback): void
1414
{
1515
// @phpstan-ignore-next-line
16-
$currentLocale = setlocale($category, 0);
16+
$currentLocale = setlocale($category, '0');
1717
try {
1818
// @phpstan-ignore-next-line
1919
setlocale($category, $locale);

0 commit comments

Comments
 (0)