Unverified Commit 88cd63fd authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3177765 by klausi: ListInterface::first() return value is documented wrong

(cherry picked from commit 7655860e)
parent caa0f61a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -83,8 +83,8 @@ public function set($index, $value);
  /**
   * Returns the first item in this list.
   *
   * @return \Drupal\Core\TypedData\TypedDataInterface
   *   The first item in this list.
   * @return \Drupal\Core\TypedData\TypedDataInterface|null
   *   The first item in this list, or NULL if there are no items.
   *
   * @throws \Drupal\Core\TypedData\Exception\MissingDataException
   *   If the complex data structure is unset and no item can be created.