Skip to content

Commit

Permalink
Make Uri constructor readable
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and mnavarrocarter committed Jul 7, 2021
1 parent a89eb1f commit 18926f2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ class Uri implements Stringable
/**
* Uri constructor.
*/
protected function __construct(string $scheme, string $user = '', string $pass = '', string $host = '', string $port = '', string $path = '', string $query = '', string $fragment = '')
{
protected function __construct(
string $scheme,
string $user = '',
string $pass = '',
string $host = '',
string $port = '',
string $path = '',
string $query = '',
string $fragment = ''
) {
$this->scheme = $scheme;
$this->user = $user;
$this->pass = $pass;
Expand Down

0 comments on commit 18926f2

Please sign in to comment.