diff --git a/Controller/RedirectController.php b/Controller/RedirectController.php index d1f253166..8d5b6375a 100644 --- a/Controller/RedirectController.php +++ b/Controller/RedirectController.php @@ -105,7 +105,7 @@ public function redirectAction(Request $request, string $route, bool $permanent */ public function urlRedirectAction(Request $request, string $path, bool $permanent = false, ?string $scheme = null, ?int $httpPort = null, ?int $httpsPort = null, bool $keepRequestMethod = false): Response { - if ('' == $path) { + if ('' === $path) { throw new HttpException($permanent ? 410 : 404); }