Skip to content

Commit

Permalink
Work with billions in money field
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijastuden committed Dec 5, 2023
1 parent 72a8a75 commit e137941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Field/Scalar/MoneyField.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(string $name, float $default_value = null)
{
parent::__construct($name, $default_value);

$this->length(12);
$this->length(18);
$this->scale(6);
}
}
2 changes: 1 addition & 1 deletion test/src/ScalarFields/MoneyFieldDbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testDefaultSize()
{
$amount = new MoneyField('amount');

$this->assertSame(12, $amount->getLength());
$this->assertSame(18, $amount->getLength());
$this->assertSame(6, $amount->getScale());
}
}

0 comments on commit e137941

Please sign in to comment.