Skip to content

Commit

Permalink
Switched to non-null defaults in exception constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored and nicolas-grekas committed Feb 22, 2021
1 parent 3650057 commit 654d0c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Exception/CommandNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class CommandNotFoundException extends \InvalidArgumentException implements Exce
private $alternatives;

/**
* @param string $message Exception message to throw
* @param array $alternatives List of similar defined names
* @param int $code Exception code
* @param \Throwable $previous Previous exception used for the exception chaining
* @param string $message Exception message to throw
* @param string[] $alternatives List of similar defined names
* @param int $code Exception code
* @param \Throwable|null $previous Previous exception used for the exception chaining
*/
public function __construct(string $message, array $alternatives = [], int $code = 0, \Throwable $previous = null)
{
Expand All @@ -34,7 +34,7 @@ public function __construct(string $message, array $alternatives = [], int $code
}

/**
* @return array A list of similar defined names
* @return string[] A list of similar defined names
*/
public function getAlternatives()
{
Expand Down

0 comments on commit 654d0c8

Please sign in to comment.