Commit d5456f36 authored by Max Lovric's avatar Max Lovric Committed by Nedjo Rogers
Browse files

Issue #2936874 by samuel.mortenson, Max Lovric, sickness29: PHP7.2 - Deprecated function: each()

parent b158ce36
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -312,7 +312,8 @@ class FieldCollectionItemEntity extends Entity {
        }
        $result = $query->execute();
        if ($result) {
          list($this->hostEntityType, $data) = each($result);
          $this->hostEntityType = key($result);
          $data = current($result);

          if ($this->isInUse()) {
            $data_array_keys = array_keys($data);