We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc896bd commit 6cb896dCopy full SHA for 6cb896d
src/Rules/Traits/SizeTrait.php
@@ -15,7 +15,7 @@ trait SizeTrait
15
*/
16
protected function getValueSize($value)
17
{
18
- if (is_int($value) || is_float($value)) {
+ if (is_int($value) || is_numeric($value)) {
19
return (float) $value;
20
} elseif (is_string($value)) {
21
return (float) mb_strlen($value, 'UTF-8');
0 commit comments