Warning: array_merge(): Argument #1 is not an array in /var/www/html/app/src/Action/LocationsAction.php on line 40

Warning: array_merge(): Argument #2 is not an array in /var/www/html/vendor/slim/twig-view/src/Twig.php on line 87

Fatal error: Uncaught TypeError: Argument 1 passed to Twig_Template::render() must be of the type array, null given, called in /var/www/html/vendor/slim/twig-view/src/Twig.php on line 89 and defined in /var/www/html/vendor/twig/twig/lib/Twig/Template.php:361 Stack trace: #0 /var/www/html/vendor/slim/twig-view/src/Twig.php(89): Twig_Template->render(NULL) #1 /var/www/html/vendor/slim/twig-view/src/Twig.php(102): Slim\Views\Twig->fetch('subpages/page_l...', NULL) #2 /var/www/html/app/src/Action/LocationsAction.php(42): Slim\Views\Twig->render(Object(Slim\Http\Response), 'subpages/page_l...', NULL) #3 [internal function]: App\Action\LocationsAction->dispatch(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #4 /var/www/html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #5 /var/www/html/vendor/slim/slim/Slim/Route.php(325): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Obj in /var/www/html/vendor/twig/twig/lib/Twig/Template.php on line 361