Skip to content

Commit 1241a00

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Fix return types for PHP 8.1
2 parents 0a35d2f + 939571d commit 1241a00

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
@@ -56,6 +56,7 @@ public function __clone()
5656
*
5757
* @return \ArrayIterator|Route[] An \ArrayIterator object for iterating over routes
5858
*/
59+
#[\ReturnTypeWillChange]
5960
public function getIterator()
6061
{
6162
return new \ArrayIterator($this->all());
@@ -66,6 +67,7 @@ public function getIterator()
6667
*
6768
* @return int The number of routes
6869
*/
70+
#[\ReturnTypeWillChange]
6971
public function count()
7072
{
7173
return \count($this->routes);

0 commit comments

Comments
 (0)