Skip to content

Commit b4fc179

Browse files
authored
Fixed PHP 8.1 errors (thephpleague#256)
* Fixed PHP 8.1 errors * Fixed return type
1 parent d97c76d commit b4fc179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/ItemBag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function add($item)
7878
*
7979
* @return \ArrayIterator An \ArrayIterator instance
8080
*/
81-
public function getIterator()
81+
public function getIterator(): \Traversable
8282
{
8383
return new \ArrayIterator($this->items);
8484
}
@@ -88,7 +88,7 @@ public function getIterator()
8888
*
8989
* @return int The number of items
9090
*/
91-
public function count()
91+
public function count(): int
9292
{
9393
return count($this->items);
9494
}

0 commit comments

Comments
 (0)