diff --git a/Controller/RedirectController.php b/Controller/RedirectController.php index 7ed3b2dd9..24e1dad85 100644 --- a/Controller/RedirectController.php +++ b/Controller/RedirectController.php @@ -109,7 +109,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); }