Skip to content

Commit 3d70f14

Browse files
Minor fixes around parse_url() checks
1 parent 48aba9b commit 3d70f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/RedirectController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function redirectAction(Request $request, string $route, bool $permanent
109109
*/
110110
public function urlRedirectAction(Request $request, string $path, bool $permanent = false, ?string $scheme = null, ?int $httpPort = null, ?int $httpsPort = null, bool $keepRequestMethod = false): Response
111111
{
112-
if ('' == $path) {
112+
if ('' === $path) {
113113
throw new HttpException($permanent ? 410 : 404);
114114
}
115115

0 commit comments

Comments
 (0)