Skip to content

Commit 810a063

Browse files
committed
Improve SizeTraits for Integers
Resolves #85 - Users can now validate min and max for integers with this update
1 parent 64522b3 commit 810a063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Traits/SizeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trait SizeTrait
1616
protected function getValueSize($value)
1717
{
1818
if ($this->getAttribute()
19-
&& $this->getAttribute()->hasRule('numeric')
19+
&& ($this->getAttribute()->hasRule('numeric') || $this->getAttribute()->hasRule('integer'))
2020
&& is_numeric($value)
2121
) {
2222
$value = (float) $value;

0 commit comments

Comments
 (0)