Completed
Pull Request — master (#785)
by Amrouche
02:31
created
src/JsonApi/Serializer/ItemNormalizer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
      * @param string|null $format
216 216
      * @param array       $context
217 217
      *
218
-     * @return bool|string
218
+     * @return string|false
219 219
      */
220 220
     private function getCacheKey(string $format = null, array $context)
221 221
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
             $context['object_to_populate'] = $this->iriConverter->getItemFromIri($data['data']['id'], $context + ['fetch_data' => false]);
94 94
         }
95 95
 
96
-        return parent::denormalize(isset($data['data']) ? $data['data']['attributes']: $data, $class, $format, $context);
96
+        return parent::denormalize(isset($data['data']) ? $data['data']['attributes'] : $data, $class, $format, $context);
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.