summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-12-01 18:07:53 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-12-01 18:56:03 +0000
commit65e02381e632b9777b3346fdd802519b781016a7 (patch)
tree0ee6b6c454bd5e6e06692bfa7c22a290d2dd0869 /index.php
parente70f282ef978b175c5529f439f3b572c5b8531a2 (diff)
downloadwebtrees-65e02381e632b9777b3346fdd802519b781016a7.tar.gz
webtrees-65e02381e632b9777b3346fdd802519b781016a7.tar.bz2
webtrees-65e02381e632b9777b3346fdd802519b781016a7.zip
PHP 7.1: short-syntax for array destructuring
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index b047b80fed..250615cbc5 100644
--- a/index.php
+++ b/index.php
@@ -204,7 +204,7 @@ try {
// Find the controller and action for the selected route
$controller_action = $routes[$request->getMethod() . ':' . $route] ?? 'ErrorController@noRouteFound';
- list($controller_name, $action) = explode('@', $controller_action);
+ [$controller_name, $action] = explode('@', $controller_action);
$controller_class = '\\Fisharebest\\Webtrees\\Http\\Controllers\\' . $controller_name;
// Set up dependency injection for the controllers.