PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php +9 -13 18.7 → trunk View file →
@@ -12,11 +12,11 @@
12 12 */
13 13 interface ClientInterface
14 14 {
15 15 /**
16 - * @deprecated Will be removed in Guzzle 7.0.0
16 + * The Guzzle major version.
17 17 */
18 - const VERSION = '6.5.1';
18 + public const MAJOR_VERSION = 7;
19 19 /**
20 20 * Send an HTTP request.
21 21 *
22 22 * @param RequestInterface $request Request to send
@@ -22,12 +22,11 @@
22 22 * @param RequestInterface $request Request to send
23 23 * @param array $options Request options to apply to the given
24 24 * request and to the transfer.
25 25 *
26 - * @return ResponseInterface
27 26 * @throws GuzzleException
28 27 */
29 - public function send(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options = []);
28 + public function send(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface;
30 29 /**
31 30 * Asynchronously send an HTTP request.
32 31 *
33 32 * @param RequestInterface $request Request to send
@@ -32,12 +31,10 @@
32 31 *
33 32 * @param RequestInterface $request Request to send
34 33 * @param array $options Request options to apply to the given
35 34 * request and to the transfer.
36 - *
37 - * @return PromiseInterface
38 35 */
39 - public function sendAsync(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options = []);
36 + public function sendAsync(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface;
40 37 /**
41 38 * Create and send an HTTP request.
42 39 *
43 40 * Use an absolute path to override the base path of the client, or a
@@ -47,12 +44,11 @@
47 44 * @param string $method HTTP method.
48 45 * @param string|UriInterface $uri URI object or string.
49 46 * @param array $options Request options to apply.
50 47 *
51 - * @return ResponseInterface
52 48 * @throws GuzzleException
53 49 */
54 - public function request($method, $uri, array $options = []);
50 + public function request(string $method, $uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface;
55 51 /**
56 52 * Create and send an asynchronous HTTP request.
57 53 *
58 54 * Use an absolute path to override the base path of the client, or a
@@ -62,12 +58,10 @@
62 58 *
63 59 * @param string $method HTTP method
64 60 * @param string|UriInterface $uri URI object or string.
65 61 * @param array $options Request options to apply.
66 - *
67 - * @return PromiseInterface
68 62 */
69 - public function requestAsync($method, $uri, array $options = []);
63 + public function requestAsync(string $method, $uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface;
70 64 /**
71 65 * Get a client configuration option.
72 66 *
73 67 * These options include default request options of the client, a "handler"
@@ -76,7 +70,9 @@
76 70 *
77 71 * @param string|null $option The config option to retrieve.
78 72 *
79 73 * @return mixed
74 + *
75 + * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0.
80 76 */
81 - public function getConfig($option = null);
77 + public function getConfig(?string $option = null);
82 78 }