PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
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 1.2.9 All 35 releases
← All changes | includes/sdk/s3/Psr/Http/Message/RequestInterface.php +7 -7 1.2.91.4.1 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) : 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) : 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() : 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(UriInterface $uri, $preserveHost = \false);
123 + public function withUri(UriInterface $uri, bool $preserveHost = \false) : RequestInterface;
124 124 }