Skip to content

Commit

Permalink
Fixes #5015. Nullable string type hint on runserver's parseUri(). (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 14, 2022
1 parent 74a2c42 commit e862418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/core/RunserverCommands.php
Expand Up @@ -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 [];
Expand Down

0 comments on commit e862418

Please sign in to comment.