PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
← All changes | lib/Google/src/Service/Exception.php +13 -11 3.2.0trunk View file →
@@ -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;