Skip to content

Commit

Permalink
Fixed PHP 8.1 errors (#256)
Browse files Browse the repository at this point in the history
* Fixed PHP 8.1 errors

* Fixed return type
  • Loading branch information
aimeos committed Dec 21, 2021
1 parent d97c76d commit b4fc179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/ItemBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function add($item)
*
* @return \ArrayIterator An \ArrayIterator instance
*/
public function getIterator()
public function getIterator(): \Traversable
{
return new \ArrayIterator($this->items);
}
Expand All @@ -88,7 +88,7 @@ public function getIterator()
*
* @return int The number of items
*/
public function count()
public function count(): int
{
return count($this->items);
}
Expand Down

0 comments on commit b4fc179

Please sign in to comment.