Skip to content

Commit aeaea8b

Browse files
Update References.php
Co-authored-by: Alex Rock <pierstoval@gmail.com>
1 parent aae9da5 commit aeaea8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

References.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ public function threshold(string $threshold): float
236236
return $threshold;
237237
}
238238
} else {
239-
if (is_int(filter_var($threshold, FILTER_VALIDATE_INT)) && intval($threshold) >= 0)
239+
if (is_numeric($threshold)) {
240240
return $threshold;
241+
}
241242
}
242243

243244
throw new \InvalidArgumentException(\sprintf(

0 commit comments

Comments
 (0)