Error at RouteCollection |
{
$to = static fn (...$data) => service('renderer') ->setData(['segments' => $data], 'raw') ->render($view, $options); $routeOptions = $options ?? []; $routeOptions = array_merge($routeOptions, ['view' => $view]); $this->create(Method::GET, $from, $to, $routeOptions); return $this; } My Terminal says that my "fn" is incorrect: "Syntax error: unexpected token 'fn'"
PHP version 8.1 or newer is required
https://www.codeigniter.com/user_guide/i...extensions |
Welcome Guest, Not a member yet? Register Sign In |