Skip to content

Commit

Permalink
Use Ringgit be default.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Apr 4, 2018
1 parent 2da8a26 commit 88424a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Sanitizer extends BaseSanitizer
*/
public function __construct(array $casters = [])
{
$money = $casters['money'] ?? Casts\Money::class;
$money = $casters['money'] ?? Casts\Ringgit::class;
$datetime = $casters['datetime'] ?? Casts\DateTime::class;

$this->casts = [
Expand Down
2 changes: 1 addition & 1 deletion tests/Base/BillTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function it_can_show_existing_bill()

$bill = $response->toArray();

$this->assertInstanceOf(Money::class, $bill['amount']);
$this->assertInstanceOf(MYR::class, $bill['amount']);
$this->assertSame('inbmmepb', $bill['collection_id']);
}

Expand Down

0 comments on commit 88424a4

Please sign in to comment.