From: Raphaël Gertz Date: Mon, 24 Oct 2022 05:51:06 +0000 (+0200) Subject: Add php strict X-Git-Tag: 0.3.0~157 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/1a35f270bc2cd8cee255d9553699b85145f04f0b?hp=752e48619db81da242495044882a5f3da81b7878 Add php strict Add Response return type Cleanup --- diff --git a/Handler/AccessDeniedHandler.php b/Handler/AccessDeniedHandler.php index b742db0..13727c9 100644 --- a/Handler/AccessDeniedHandler.php +++ b/Handler/AccessDeniedHandler.php @@ -1,8 +1,18 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace Rapsys\AirBundle\Handler; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface; @@ -16,7 +26,7 @@ class AccessDeniedHandler extends AbstractController implements AccessDeniedHand /** * {@inheritdoc} */ - public function handle(Request $request, AccessDeniedException $exception) { + public function handle(Request $request, AccessDeniedException $exception): Response { //Set title $this->context['title'] = $this->translator->trans('Access denied');