We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea0d7c1 commit 21c0757Copy full SHA for 21c0757
src/Money.php
@@ -297,7 +297,7 @@ public static function castUsing(array $arguments): string
297
298
public static function getLocale(): string
299
{
300
- if (! isset(static::$locale)) {
+ if (empty(static::$locale)) {
301
static::$locale = 'en_GB';
302
}
303
tests/MoneyTest.php
@@ -59,7 +59,7 @@ public function testStringThrowsException()
59
60
public function testLocale()
61
62
- Money::setLocale(null);
+ Money::setLocale('');
63
$this->assertEquals('en_GB', Money::getLocale());
64
Money::setLocale('en_US');
65
$this->assertEquals('en_US', Money::getLocale());
0 commit comments