Merge branch 'v1.1' into main

This commit is contained in:
Daniele Alessandri
2020-08-24 12:03:34 +02:00
6 changed files with 55 additions and 10 deletions
+3 -1
View File
@@ -535,7 +535,9 @@ class Client implements ClientInterface, \IteratorAggregate
$connection = $this->getConnection();
if (!$connection instanceof \Traversable) {
throw new ClientException('The underlying connection is not traversable');
return new \ArrayIterator(array(
(string) $connection => new static($connection, $this->getOptions())
));
}
foreach ($connection as $node) {