Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/contacts/Contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace de\xqueue\maileon\api\client\contacts;

use ArrayIterator;
use Traversable;
use de\xqueue\maileon\api\client\xml\AbstractXMLWrapper;
use IteratorAggregate;
use SimpleXMLElement;
Expand Down Expand Up @@ -39,9 +40,9 @@ public function addContact($contact)
}

/**
* @return ArrayIterator an iterator for the contacts in this list of contacts
* @return Traversable an iterator for the contacts in this list of contacts
*/
public function getIterator()
public function getIterator(): Traversable
{
return new ArrayIterator($this->contacts);
}
Expand Down