diff --git a/core/lib/Drupal/Core/TypedData/ListInterface.php b/core/lib/Drupal/Core/TypedData/ListInterface.php index 1dab39a0f71e45567a3db8a5cfb08a3b73bb84b9..7e3e616d09d1cf17da86cfe2f6274eddb5db0703 100644 --- a/core/lib/Drupal/Core/TypedData/ListInterface.php +++ b/core/lib/Drupal/Core/TypedData/ListInterface.php @@ -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.