Skip to content

Commit 21c0757

Browse files
committed
fixed tests
1 parent ea0d7c1 commit 21c0757

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Money.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public static function castUsing(array $arguments): string
297297

298298
public static function getLocale(): string
299299
{
300-
if (! isset(static::$locale)) {
300+
if (empty(static::$locale)) {
301301
static::$locale = 'en_GB';
302302
}
303303

tests/MoneyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testStringThrowsException()
5959

6060
public function testLocale()
6161
{
62-
Money::setLocale(null);
62+
Money::setLocale('');
6363
$this->assertEquals('en_GB', Money::getLocale());
6464
Money::setLocale('en_US');
6565
$this->assertEquals('en_US', Money::getLocale());

0 commit comments

Comments
 (0)