| @@ -32,15 +32,15 @@ | ||
| 32 | 32 | * |
| 33 | 33 | * @param string $message |
| 34 | 34 | * @param int $code |
| 35 | 35 | * @param Exception|null $previous |
| 36 | - * @param array<string,string> $errors List of errors returned in an HTTP | |
| 37 | - * response. Defaults to []. | |
| 36 | + * @param array<array<string,string>>|null $errors List of errors returned in an HTTP | |
| 37 | + * response or null. Defaults to []. | |
| 38 | 38 | */ |
| 39 | 39 | public function __construct( |
| 40 | 40 | $message, |
| 41 | 41 | $code = 0, |
| 42 | - Exception $previous = null, | |
| 42 | + ?Exception $previous = null, | |
| 43 | 43 | $errors = [] |
| 44 | 44 | ) { |
| 45 | 45 | if (version_compare(PHP_VERSION, '5.3.0') >= 0) { |
| 46 | 46 | parent::__construct($message, $code, $previous); |
| @@ -53,17 +53,19 @@ | ||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * An example of the possible errors returned. |
| 56 | 56 | * |
| 57 | - * { | |
| 58 | - * "domain": "global", | |
| 59 | - * "reason": "authError", | |
| 60 | - * "message": "Invalid Credentials", | |
| 61 | - * "locationType": "header", | |
| 62 | - * "location": "Authorization", | |
| 63 | - * } | |
| 57 | + * [ | |
| 58 | + * { | |
| 59 | + * "domain": "global", | |
| 60 | + * "reason": "authError", | |
| 61 | + * "message": "Invalid Credentials", | |
| 62 | + * "locationType": "header", | |
| 63 | + * "location": "Authorization", | |
| 64 | + * } | |
| 65 | + * ] | |
| 64 | 66 | * |
| 65 | - * @return array<string,string> List of errors return in an HTTP response or []. | |
| 67 | + * @return array<array<string,string>>|null List of errors returned in an HTTP response or null. | |
| 66 | 68 | */ |
| 67 | 69 | public function getErrors() |
| 68 | 70 | { |
| 69 | 71 | return $this->errors; |