Skip to content

Commit

Permalink
fix Field::required for smallint/bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 24, 2024
1 parent 2109b83 commit 77ac0da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ public function normalize($value)
}

break;
case 'smallint':
case 'integer':
case 'bigint':
case 'float':
case 'decimal':
case 'atk4_money':
Expand Down
2 changes: 2 additions & 0 deletions tests/FieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ public function testRequiredNumericZeroException(string $type): void
*/
public static function provideRequiredNumericZeroExceptionCases(): iterable
{
yield ['smallint'];
yield ['integer'];
yield ['bigint'];
yield ['float'];
yield ['decimal'];
yield ['atk4_money'];
Expand Down

0 comments on commit 77ac0da

Please sign in to comment.