From 27192b1609d9786fc6e371d9740aa16729cdc130 Mon Sep 17 00:00:00 2001 From: Mathias Geat Date: Tue, 26 Sep 2017 18:55:28 +0200 Subject: [PATCH] Initialize sortedRouters array for PHP 7.2 compatibility as count(null) yields warning --- src/ChainRouter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChainRouter.php b/src/ChainRouter.php index 2edc8a42..6cd14b48 100644 --- a/src/ChainRouter.php +++ b/src/ChainRouter.php @@ -47,7 +47,7 @@ class ChainRouter implements ChainRouterInterface, WarmableInterface /** * @var RouterInterface[] Array of routers, sorted by priority */ - private $sortedRouters; + private $sortedRouters = []; /** * @var RouteCollection