Skip to content

Commit 9e1a0e8

Browse files
committed
Merge pull request #3 from Gufran/fix/array-iterator-instance
fixed code in Collection class where instance of ArrayIterator is to be returned
2 parents 45af332 + 03159d8 commit 9e1a0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPHtmlParser/Dom/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function count()
8080
*/
8181
public function getIterator()
8282
{
83-
return ArrayIterator($this->collection);
83+
return new ArrayIterator($this->collection);
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)