Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit b6fe4a8

Browse files
committed
[zendframework/zendframework#937] Import ArrayIterator
1 parent 0796f7d commit b6fe4a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424
namespace Zend\Http;
2525

26-
use Zend\Config\Config,
26+
use ArrayIterator,
27+
Zend\Config\Config,
2728
Zend\Uri\Http,
2829
Zend\Http\Header\Cookie,
2930
Zend\Http\Header\SetCookie,
@@ -475,7 +476,7 @@ protected function getCookieId($cookie)
475476
*/
476477
public function addCookie($cookie, $value = null, $domain = null, $expire = null, $path = null, $secure = false, $httponly = true)
477478
{
478-
if (is_array($cookie) || $cookie instanceof \ArrayIterator) {
479+
if (is_array($cookie) || $cookie instanceof ArrayIterator) {
479480
foreach ($cookie as $setCookie) {
480481
if ($setCookie instanceof SetCookie) {
481482
$this->cookies[$this->getCookieId($setCookie)] = $setCookie;

0 commit comments

Comments
 (0)