Skip to content
Snippets Groups Projects
Commit f6b1a182 authored by catch's avatar catch
Browse files

Issue #3497677 by sandip poddar, longwave: Widen type for $violations in...

Issue #3497677 by sandip poddar, longwave: Widen type for $violations in EntityConstraintViolationList constructor
parent a29e8f53
No related branches found
No related tags found
1 merge request!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes
Pipeline #448660 passed with warnings
Pipeline: drupal

#448668

    Pipeline: drupal

    #448665

      ......@@ -516,7 +516,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) {
      public function validate() {
      $this->validated = TRUE;
      $violations = $this->getTypedData()->validate();
      return new EntityConstraintViolationList($this, iterator_to_array($violations));
      return new EntityConstraintViolationList($this, $violations);
      }
      /**
      ......
      ......@@ -44,10 +44,10 @@ class EntityConstraintViolationList extends ConstraintViolationList implements E
      *
      * @param \Drupal\Core\Entity\FieldableEntityInterface $entity
      * The entity that has been validated.
      * @param array $violations
      * The array of violations.
      * @param iterable $violations
      * The set of violations.
      */
      public function __construct(FieldableEntityInterface $entity, array $violations = []) {
      public function __construct(FieldableEntityInterface $entity, iterable $violations = []) {
      parent::__construct($violations);
      $this->entity = $entity;
      }
      ......
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Finish editing this message first!
      Please register or to comment