Passed
Push — master ( 815ced...0f1623 )
by Matt
02:34
created
src/Mappings/MethodMapping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Hydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/HydratorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.