X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/blogbundle/blobdiff_plain/3d10d3501676aad377f91aa03155b176a1fdf270..refs/heads/master:/Controller/AbstractController.php diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index 57a0ffc..db1384d 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -78,7 +78,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv /** * Modified DateTime */ - protected \DateTime $modified; + protected \DateTimeImmutable $modified; /** * Page integer @@ -337,7 +337,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv 'logo' => $this->config['logo'], 'next' => null, 'prev' => null, - 'root' => $this->router->generate($this->config['root']), + 'root' => $this->config['root'], 'title' => [ 'page' => null, 'section' => null, @@ -351,7 +351,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv * * {@inheritdoc} */ - protected function render(string $view, array $parameters = [], Response $response = null): Response { + protected function render(string $view, array $parameters = [], ?Response $response = null): Response { //Create response when null $response ??= new Response();