| @@ 44-46 (lines=3) @@ | ||
| 41 | throw new \InvalidArgumentException('"' . var_export($allowNull, true) . '" $allowNull was not a bool'); |
|
| 42 | } |
|
| 43 | ||
| 44 | if ($minValue !== null && !is_float($minValue)) { |
|
| 45 | throw new \InvalidArgumentException('"' . var_export($minValue, true) . '" $minValue was not a float'); |
|
| 46 | } |
|
| 47 | ||
| 48 | if ($maxValue !== null && !is_float($maxValue)) { |
|
| 49 | throw new \InvalidArgumentException('"' . var_export($maxValue, true) . '" $maxValue was not a float'); |
|
| @@ 48-50 (lines=3) @@ | ||
| 45 | throw new \InvalidArgumentException('"' . var_export($minValue, true) . '" $minValue was not a float'); |
|
| 46 | } |
|
| 47 | ||
| 48 | if ($maxValue !== null && !is_float($maxValue)) { |
|
| 49 | throw new \InvalidArgumentException('"' . var_export($maxValue, true) . '" $maxValue was not a float'); |
|
| 50 | } |
|
| 51 | ||
| 52 | if ($castInts !== false && $castInts !== true) { |
|
| 53 | throw new \InvalidArgumentException('"' . var_export($castInts, true) . '" $castInts was not a bool'); |
|
| @@ 46-48 (lines=3) @@ | ||
| 43 | throw new \InvalidArgumentException('"' . var_export($allowNull, true) . '" $allowNull was not a bool'); |
|
| 44 | } |
|
| 45 | ||
| 46 | if ($minValue !== null && !is_int($minValue)) { |
|
| 47 | throw new \InvalidArgumentException('"' . var_export($minValue, true) . '" $minValue was not an int'); |
|
| 48 | } |
|
| 49 | ||
| 50 | if (!is_int($maxValue)) { |
|
| 51 | throw new \InvalidArgumentException('"' . var_export($maxValue, true) . '" $maxValue was not an int'); |
|