Skip to content

Commit 5b242b7

Browse files
fix nullable param
1 parent c023599 commit 5b242b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @param string $locale
77
* @return Pharaonic\Laravel\Localization\Classes\Localization
88
*/
9-
function locale(?string $locale)
9+
function locale(?string $locale = null)
1010
{
1111
return app('Localization')->setTempLocale($locale);
1212
}

0 commit comments

Comments
 (0)