Skip to content

Commit

Permalink
Fixes drush-ops#5015. Nullable string type hint on runserver's parseU…
Browse files Browse the repository at this point in the history
…ri().
  • Loading branch information
weitzman committed Jan 13, 2022
1 parent baa8d70 commit d1fcb23
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

1 comment on commit d1fcb23

@mvggitacc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, worked for me

Please sign in to comment.