diff --git a/core/modules/comment/lib/Drupal/comment/Entity/Comment.php b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php index 59c122b..be0ba39 100644 --- a/core/modules/comment/lib/Drupal/comment/Entity/Comment.php +++ b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php @@ -340,7 +340,7 @@ public static function postDelete(EntityStorageControllerInterface $storage_cont $child_cids = $storage_controller->getChildCids($entities); entity_delete_multiple('comment', $child_cids); - foreach ($entities as $id => $entity) { + foreach ($entities as $entity) { $storage_controller->updateNodeStatistics($entity->nid->target_id); } }