@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $parameters = $this->reflector->getParameters(); |
48 | 48 | |
49 | - return $parameters[0]?->getType(); |
|
49 | + return $parameters[0] ? ->getType(); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -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 | } |
@@ -10,5 +10,5 @@ |
||
10 | 10 | * |
11 | 11 | * @return object |
12 | 12 | */ |
13 | - public function hydrate(string|object $object, array $input): object; |
|
13 | + public function hydrate(string | object $object, array $input): object; |
|
14 | 14 | } |