Skip to content

Commit 939571d

Browse files
committed
Fix return types for PHP 8.1
1 parent 2446098 commit 939571d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RouteCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function __clone()
5151
*
5252
* @return \ArrayIterator|Route[] An \ArrayIterator object for iterating over routes
5353
*/
54+
#[\ReturnTypeWillChange]
5455
public function getIterator()
5556
{
5657
return new \ArrayIterator($this->routes);
@@ -61,6 +62,7 @@ public function getIterator()
6162
*
6263
* @return int The number of routes
6364
*/
65+
#[\ReturnTypeWillChange]
6466
public function count()
6567
{
6668
return \count($this->routes);

0 commit comments

Comments
 (0)