@@ -218,7 +218,7 @@ |
||
218 | 218 | protected function assertType($type, $value): void { |
219 | 219 | if(!is_object($type) && !is_string($type)) { |
220 | 220 | Environment::testResult("Type must be string or object.", false); |
221 | - } elseif(in_array($type, ["array", "bool", "callable", "float", "int", "integer", "null", "object", |
|
221 | + } elseif(in_array($type, ["array", "bool", "callable", "float", "int", "integer", "null", "object", |
|
222 | 222 | "resource", "scalar", "string", "iterable", ], true)) { |
223 | 223 | if(!call_user_func("is_$type", $value)) { |
224 | 224 | Environment::testResult("The variable is " . gettype($value) . ".", false); |