Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / serialization / src / Normalizer / ComplexDataNormalizer.php
index 3d2031218f1bef4611012c075cf6529eb8aee7e9..33beb373a136b27331e15a44a18b7c2c19b5873f 100644 (file)
@@ -26,9 +26,9 @@ class ComplexDataNormalizer extends NormalizerBase {
    */
   public function normalize($object, $format = NULL, array $context = []) {
     $attributes = [];
-    /** @var \Drupal\Core\TypedData\TypedDataInterface $field */
-    foreach ($object as $name => $field) {
-      $attributes[$name] = $this->serializer->normalize($field, $format, $context);
+    /** @var \Drupal\Core\TypedData\TypedDataInterface $property */
+    foreach ($object as $name => $property) {
+      $attributes[$name] = $this->serializer->normalize($property, $format, $context);
     }
     return $attributes;
   }