From e86241882dbdc553f4c661983b6c0d7a675cf118 Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Fri, 14 Jan 2022 07:44:28 -0500 Subject: [PATCH] Fixes #5015. Nullable string type hint on runserver's parseUri(). (#5017) --- src/Commands/core/RunserverCommands.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/core/RunserverCommands.php b/src/Commands/core/RunserverCommands.php index 362cbebbb1..693f26b5c2 100644 --- a/src/Commands/core/RunserverCommands.php +++ b/src/Commands/core/RunserverCommands.php @@ -119,12 +119,12 @@ public function uri($uri, $options): array /** * Parse a URI or partial URI (including just a port, host IP or path). * - * @param string $uri + * @param $uri * String that can contain partial URI. * * URI array as returned by parse_url. */ - public function parseUri(string $uri): array + public function parseUri(?string $uri): array { if (empty($uri)) { return [];