Skip to content

Commit 27192b1

Browse files
committed
Initialize sortedRouters array for PHP 7.2 compatibility as count(null) yields warning
1 parent d4fa611 commit 27192b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChainRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ChainRouter implements ChainRouterInterface, WarmableInterface
4747
/**
4848
* @var RouterInterface[] Array of routers, sorted by priority
4949
*/
50-
private $sortedRouters;
50+
private $sortedRouters = [];
5151

5252
/**
5353
* @var RouteCollection

0 commit comments

Comments
 (0)