]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/AbstractController.php
Fix deprecation
[airbundle] / Controller / AbstractController.php
index 73e84f63993fa7e27567493da5ebe4d1bab067fd..6efa2ed7834127146307f457765e5f991bda128c 100644 (file)
@@ -218,7 +218,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv
         *
         * {@inheritdoc}
         */
         *
         * {@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();
 
                //Create response when null
                $response ??= new Response();