Skip to content

Commit 126306c

Browse files
authored
Merge pull request #125 from kidstell/CaptureIntegersOnSizeTrait
Improve SizeTraits for Integers - Closes #85
2 parents 64522b3 + 810a063 commit 126306c

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)