From 14abad4c510ad03345e0d414ef838003d387efce Mon Sep 17 00:00:00 2001 From: Mark Gerarts Date: Thu, 21 Dec 2017 14:35:25 +0100 Subject: [PATCH] Improve readability i18nrouter constructor Instead of calling the parent constructor via call_user_func, we can use `...` to unpack the arguments, which looks a bit cleaner. --- Router/I18nRouter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Router/I18nRouter.php b/Router/I18nRouter.php index 42dd248..5f2a811 100644 --- a/Router/I18nRouter.php +++ b/Router/I18nRouter.php @@ -54,7 +54,7 @@ class I18nRouter extends Router */ public function __construct() { - call_user_func_array(array('Symfony\Bundle\FrameworkBundle\Routing\Router', '__construct'), func_get_args()); + parent::__construct(...func_get_args()); $this->container = func_get_arg(0); }