From 5183b61657807099d98f3367bcccb850238b17a9 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 6 Nov 2024 10:02:46 +0100 Subject: [PATCH] [HttpFoundation] Fix merge --- Request.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Request.php b/Request.php index e2339e38a..8db37888f 100644 --- a/Request.php +++ b/Request.php @@ -302,10 +302,6 @@ public static function create(string $uri, string $method = 'GET', array $parame $server['REQUEST_METHOD'] = strtoupper($method); $components = parse_url($uri); - if (false === $components) { - throw new \InvalidArgumentException(sprintf('Malformed URI "%s".', $uri)); - } - if (false === $components) { throw new BadRequestException('Invalid URI.'); }