We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4b2a53 + 980c26a commit cc789afCopy full SHA for cc789af
1 file changed
src/ClickUp/Objects/AbstractObjectCollection.php
@@ -82,7 +82,7 @@ public function objects()
82
*/
83
public function getIterator()
84
{
85
- return new \ArrayIterator($this->objects());
+ return $this->objects() ? new \ArrayIterator($this->objects()) : new \EmptyIterator();
86
}
87
88
0 commit comments