@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | protected static $types = [ |
19 | 19 | JsonContent::class => ['array', JsonSerializable::class], |
20 | - HtmlContent::class => ['boolean', 'integer','double', 'string'], |
|
20 | + HtmlContent::class => ['boolean', 'integer', 'double', 'string'], |
|
21 | 21 | NullContent::class => ['NULL'], |
22 | 22 | FileContent::class => [SplFileInfo::class], |
23 | 23 | ]; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | public static function isTypeOf($data, $type) : bool |
46 | 46 | { |
47 | - if (is_object($data) && !\in_array($type, ['boolean', 'integer','double', 'string','array','NULL'])) { |
|
47 | + if (is_object($data) && !\in_array($type, ['boolean', 'integer', 'double', 'string', 'array', 'NULL'])) { |
|
48 | 48 | $class = new ReflectionClass($data); |
49 | 49 | $typeRef = new ReflectionClass($type); |
50 | 50 | if ($typeRef->isInterface()) { |