PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/guzzlehttp/guzzle/src/functions.php +10 -10 1.0.3 → 1.4.2 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2
3 -namespace Dudlewebs\WPMCS\GuzzleHttp;
3 +namespace Dudlewebs\WPMCS\GCP\GuzzleHttp;
4 4
5 5 /**
6 6 * Debug function used to describe the provided value type and class.
7 7 *
@@ -12,9 +12,9 @@
12 12 * if a class is provided, the class name.
13 13 *
14 14 * @deprecated describe_type will be removed in guzzlehttp/guzzle:8.0. Use Utils::describeType instead.
15 15 */
16 -function describe_type($input): string
16 +function describe_type($input) : string
17 17 {
18 18 return Utils::describeType($input);
19 19 }
20 20 /**
@@ -24,9 +24,9 @@
24 24 * format: "Name: Value"
25 25 *
26 26 * @deprecated headers_from_lines will be removed in guzzlehttp/guzzle:8.0. Use Utils::headersFromLines instead.
27 27 */
28 -function headers_from_lines(iterable $lines): array
28 +function headers_from_lines(iterable $lines) : array
29 29 {
30 30 return Utils::headersFromLines($lines);
31 31 }
32 32 /**
@@ -46,15 +46,15 @@
46 46 * Chooses and creates a default handler to use based on the environment.
47 47 *
48 48 * The returned handler is not wrapped by any default middlewares.
49 49 *
50 - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system.
50 + * @return callable(\Psr\Http\Message\RequestInterface, array): Promise\PromiseInterface Returns the best handler for the given system.
51 51 *
52 52 * @throws \RuntimeException if no viable Handler is available.
53 53 *
54 54 * @deprecated choose_handler will be removed in guzzlehttp/guzzle:8.0. Use Utils::chooseHandler instead.
55 55 */
56 -function choose_handler(): callable
56 +function choose_handler() : callable
57 57 {
58 58 return Utils::chooseHandler();
59 59 }
60 60 /**
@@ -61,9 +61,9 @@
61 61 * Get the default User-Agent string to use with Guzzle.
62 62 *
63 63 * @deprecated default_user_agent will be removed in guzzlehttp/guzzle:8.0. Use Utils::defaultUserAgent instead.
64 64 */
65 -function default_user_agent(): string
65 +function default_user_agent() : string
66 66 {
67 67 return Utils::defaultUserAgent();
68 68 }
69 69 /**
@@ -80,9 +80,9 @@
80 80 * @throws \RuntimeException if no bundle can be found.
81 81 *
82 82 * @deprecated default_ca_bundle will be removed in guzzlehttp/guzzle:8.0. This function is not needed in PHP 5.6+.
83 83 */
84 -function default_ca_bundle(): string
84 +function default_ca_bundle() : string
85 85 {
86 86 return Utils::defaultCaBundle();
87 87 }
88 88 /**
@@ -90,9 +90,9 @@
90 90 * header casing.
91 91 *
92 92 * @deprecated normalize_header_keys will be removed in guzzlehttp/guzzle:8.0. Use Utils::normalizeHeaderKeys instead.
93 93 */
94 -function normalize_header_keys(array $headers): array
94 +function normalize_header_keys(array $headers) : array
95 95 {
96 96 return Utils::normalizeHeaderKeys($headers);
97 97 }
98 98 /**
@@ -115,9 +115,9 @@
115 115 * @throws Exception\InvalidArgumentException
116 116 *
117 117 * @deprecated is_host_in_noproxy will be removed in guzzlehttp/guzzle:8.0. Use Utils::isHostInNoProxy instead.
118 118 */
119 -function is_host_in_noproxy(string $host, array $noProxyArray): bool
119 +function is_host_in_noproxy(string $host, array $noProxyArray) : bool
120 120 {
121 121 return Utils::isHostInNoProxy($host, $noProxyArray);
122 122 }
123 123 /**
@@ -151,8 +151,8 @@
151 151 *
152 152 * @see https://www.php.net/manual/en/function.json-encode.php
153 153 * @deprecated json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead.
154 154 */
155 -function json_encode($value, int $options = 0, int $depth = 512): string
155 +function json_encode($value, int $options = 0, int $depth = 512) : string
156 156 {
157 157 return Utils::jsonEncode($value, $options, $depth);
158 158 }