@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @return object |
| 24 | 24 | */ |
| 25 | - public function hydrate(string|object $object, array $input): object |
|
| 25 | + public function hydrate(string | object $object, array $input): object |
|
| 26 | 26 | { |
| 27 | 27 | $reflect = new ReflectionClass($object); |
| 28 | 28 | if (is_string($object)) { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | return; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - $type = $mapping->getType()?->getName() ?? stdClass::class; |
|
| 116 | + $type = $mapping->getType() ? ->getName() ?? stdClass::class; |
|
| 117 | 117 | $mapping->setValue($object, $this->hydrate($type, $value)); |
| 118 | 118 | } |
| 119 | 119 | } |