Skip to content

Commit

Permalink
Merge pull request #120 from rakit/phpcs_fix
Browse files Browse the repository at this point in the history
fix phpcs error
  • Loading branch information
emsifa authored Jul 30, 2020
2 parents 3132983 + e7273b5 commit 661f577
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Rules/Traits/SizeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ trait SizeTrait
*/
protected function getValueSize($value)
{
if (
$this->getAttribute()
if ($this->getAttribute()
&& $this->getAttribute()->hasRule('numeric')
&& is_numeric($value)
) {
Expand Down

0 comments on commit 661f577

Please sign in to comment.