Skip to content

Commit 4c5a8f6

Browse files
committed
Remove ReturnTypeWillChange
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent dc3a9a0 commit 4c5a8f6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

RouteCollection.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,17 @@ public function __clone()
5454
*
5555
* @see all()
5656
*
57-
* @return \ArrayIterator|Route[] An \ArrayIterator object for iterating over routes
57+
* @return \ArrayIterator<string, Route> An \ArrayIterator object for iterating over routes
5858
*/
59-
#[\ReturnTypeWillChange]
60-
public function getIterator()
59+
public function getIterator(): \ArrayIterator
6160
{
6261
return new \ArrayIterator($this->all());
6362
}
6463

6564
/**
6665
* Gets the number of Routes in this collection.
67-
*
68-
* @return int The number of routes
6966
*/
70-
#[\ReturnTypeWillChange]
71-
public function count()
67+
public function count(): int
7268
{
7369
return \count($this->routes);
7470
}

0 commit comments

Comments
 (0)