diff --git a/framework/web/HeaderCollection.php b/framework/web/HeaderCollection.php index a92cdbf1f5..7c135d2682 100644 --- a/framework/web/HeaderCollection.php +++ b/framework/web/HeaderCollection.php @@ -7,7 +7,6 @@ namespace yii\web; -use ArrayIterator; use Yii; use yii\base\BaseObject; @@ -15,7 +14,7 @@ use yii\base\BaseObject; * HeaderCollection is used by [[Response]] to maintain the currently registered HTTP headers. * * @property int $count The number of headers in the collection. This property is read-only. - * @property ArrayIterator $iterator An iterator for traversing the headers in the collection. This property + * @property \ArrayIterator $iterator An iterator for traversing the headers in the collection. This property * is read-only. * * @author Qiang Xue @@ -33,11 +32,11 @@ class HeaderCollection extends BaseObject implements \IteratorAggregate, \ArrayA * Returns an iterator for traversing the headers in the collection. * This method is required by the SPL interface [[\IteratorAggregate]]. * It will be implicitly called when you use `foreach` to traverse the collection. - * @return ArrayIterator an iterator for traversing the headers in the collection. + * @return \ArrayIterator an iterator for traversing the headers in the collection. */ public function getIterator() { - return new ArrayIterator($this->_headers); + return new \ArrayIterator($this->_headers); } /**