Unverified Commit 7655860e authored by alexpott's avatar alexpott
Browse files

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

parent d6b4ca71
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment