diff --git a/core/lib/Drupal/Core/TypedData/ItemList.php b/core/lib/Drupal/Core/TypedData/ItemList.php index d5a3bcc..4230ddc 100644 --- a/core/lib/Drupal/Core/TypedData/ItemList.php +++ b/core/lib/Drupal/Core/TypedData/ItemList.php @@ -7,16 +7,13 @@ namespace Drupal\Core\TypedData; -use ArrayIterator; -use IteratorAggregate; - /** * A generic list class. * * This class can serve as list for any type of items. * Note: The class cannot be called "List" as list is a reserved PHP keyword. */ -class ItemList extends ContextAwareTypedData implements IteratorAggregate, ListInterface { +class ItemList extends ContextAwareTypedData implements \IteratorAggregate, ListInterface { /** * Numerically indexed array items. @@ -166,9 +163,9 @@ public function offsetSet($offset, $value) { */ public function getIterator() { if (isset($this->list)) { - return new ArrayIterator($this->list); + return new \ArrayIterator($this->list); } - return new ArrayIterator(array()); + return new \ArrayIterator(array()); } /**