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/psr/http-message/src/RequestInterface.php +7 -7 18.2 → trunk View file →
@@ -38,9 +38,9 @@
38 38 * provided, this method MUST return the string "/".
39 39 *
40 40 * @return string
41 41 */
42 - public function getRequestTarget();
42 + public function getRequestTarget() : string;
43 43 /**
44 44 * Return an instance with the specific request-target.
45 45 *
46 46 * If the request needs a non-origin-form request-target — e.g., for
@@ -53,18 +53,18 @@
53 53 * changed request target.
54 54 *
55 55 * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
56 56 * request-target forms allowed in request messages)
57 - * @param mixed $requestTarget
57 + * @param string $requestTarget
58 58 * @return static
59 59 */
60 - public function withRequestTarget($requestTarget);
60 + public function withRequestTarget(string $requestTarget) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
61 61 /**
62 62 * Retrieves the HTTP method of the request.
63 63 *
64 64 * @return string Returns the request method.
65 65 */
66 - public function getMethod();
66 + public function getMethod() : string;
67 67 /**
68 68 * Return an instance with the provided HTTP method.
69 69 *
70 70 * While HTTP method names are typically all uppercase characters, HTTP
@@ -78,9 +78,9 @@
78 78 * @param string $method Case-sensitive method.
79 79 * @return static
80 80 * @throws \InvalidArgumentException for invalid HTTP methods.
81 81 */
82 - public function withMethod($method);
82 + public function withMethod(string $method) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
83 83 /**
84 84 * Retrieves the URI instance.
85 85 *
86 86 * This method MUST return a UriInterface instance.
@@ -88,9 +88,9 @@
88 88 * @link http://tools.ietf.org/html/rfc3986#section-4.3
89 89 * @return UriInterface Returns a UriInterface instance
90 90 * representing the URI of the request.
91 91 */
92 - public function getUri();
92 + public function getUri() : \YoastSEO_Vendor\Psr\Http\Message\UriInterface;
93 93 /**
94 94 * Returns an instance with the provided URI.
95 95 *
96 96 * This method MUST update the Host header of the returned request by
@@ -119,6 +119,6 @@
119 119 * @param UriInterface $uri New request URI to use.
120 120 * @param bool $preserveHost Preserve the original state of the Host header.
121 121 * @return static
122 122 */
123 - public function withUri(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri, $preserveHost = \false);
123 + public function withUri(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri, bool $preserveHost = \false) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
124 124 }