Drupal-8.6.1 (8.6.x)
/core/lib/Drupal/Core/Field/MapFieldItemList.php on line 31
diff --git a/core/lib/Drupal/Core/Field/MapFieldItemList.php b/core/lib/Drupal/Core/Field/MapFieldItemList.php
index 2d86dae..6e3324d 100644
--- a/core/lib/Drupal/Core/Field/MapFieldItemList.php
+++ b/core/lib/Drupal/Core/Field/MapFieldItemList.php
@@ -28,7 +28,7 @@ public function equals(FieldItemListInterface $list_to_compare) {
$value1 = $this->getValue();
$value2 = $list_to_compare->getValue();
- return $value1 == $value2;
+ return $value1 === $value2;
}
}
index 2d86dae..6e3324d 100644
--- a/core/lib/Drupal/Core/Field/MapFieldItemList.php
+++ b/core/lib/Drupal/Core/Field/MapFieldItemList.php
@@ -28,7 +28,7 @@ public function equals(FieldItemListInterface $list_to_compare) {
$value1 = $this->getValue();
$value2 = $list_to_compare->getValue();
- return $value1 == $value2;
+ return $value1 === $value2;
}
}
ref:
https://stackoverflow.com/questions/3834791/fatal-error-nesting-level-to...
Categories: