Skip to content

Commit

Permalink
Better compatability with IteratorAggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jan 26, 2022
1 parent 25cfd9b commit 4aa9634
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Definition/Map/FieldMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function remove(string $name): self
/**
* @return Field[]|\Traversable
*/
public function getIterator()
public function getIterator(): \Traversable
{
return new \ArrayIterator($this->fields);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Definition/Map/OptionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function remove(string $name): self
/**
* @return \Traversable
*/
public function getIterator()
public function getIterator(): \Traversable
{
return new \ArrayIterator($this->options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Definition/Map/RelationMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function remove(string $name): self
/**
* @return Relation[]|\Traversable
*/
public function getIterator()
public function getIterator(): \Traversable
{
return new \ArrayIterator($this->relations);
}
Expand Down

0 comments on commit 4aa9634

Please sign in to comment.