Skip to content

Commit

Permalink
Separate lines for string properties of Url class
Browse files Browse the repository at this point in the history
Looks like phpstan running on PHP 7.x doesn't like definition of
multiple class properties on one line, so just change to separate
definitions.
  • Loading branch information
otsch committed Jan 10, 2022
1 parent 7582e1a commit 9e16e56
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,50 @@
class Url
{
/**
* All (string) url components.
*
* @var string|null
*/
private $url, $scheme, $user, $pass, $path, $query, $fragment;
private $url;

/**
* @var string|null
*/
private $scheme;

/**
* @var string|null
*/
private $user;

/**
* @var string|null
*/
private $pass;

/**
* The host component is parsed to an instance of the Host class.
*
* @var Host|null
*/
private $host;

/**
* Port url component (int).
*
* @var int|null
*/
private $port;

/**
* @var string|null
*/
private $path;

/**
* @var string|null
*/
private $query;

/**
* @var string|null
*/
private $fragment;

/**
* List of all components including alias method names.
*
Expand Down

0 comments on commit 9e16e56

Please sign in to comment.