PluginProbe
Depicter — Popup & Slider Builder / 1.9.2
Depicter — Popup & Slider Builder v1.9.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
← All changes | vendor/psr/http-message/src/UriInterface.php +10 -7 1.5.2 → 1.9.2 View file →
@@ -1,5 +1,8 @@
1 1 <?php
2 +
3 +declare(strict_types=1);
4 +
2 5 namespace Psr\Http\Message;
3 6
4 7 /**
5 8 * Value object representing a URI.
@@ -187,9 +190,9 @@
187 190 * @param string $scheme The scheme to use with the new instance.
188 191 * @return static A new instance with the specified scheme.
189 192 * @throws \InvalidArgumentException for invalid or unsupported schemes.
190 193 */
191 - public function withScheme($scheme);
194 + public function withScheme(string $scheme);
192 195
193 196 /**
194 197 * Return an instance with the specified user information.
195 198 *
@@ -203,9 +206,9 @@
203 206 * @param string $user The user name to use for authority.
204 207 * @param null|string $password The password associated with $user.
205 208 * @return static A new instance with the specified user information.
206 209 */
207 - public function withUserInfo($user, $password = null);
210 + public function withUserInfo(string $user, ?string $password = null);
208 211
209 212 /**
210 213 * Return an instance with the specified host.
211 214 *
@@ -217,9 +220,9 @@
217 220 * @param string $host The hostname to use with the new instance.
218 221 * @return static A new instance with the specified host.
219 222 * @throws \InvalidArgumentException for invalid hostnames.
220 223 */
221 - public function withHost($host);
224 + public function withHost(string $host);
222 225
223 226 /**
224 227 * Return an instance with the specified port.
225 228 *
@@ -236,9 +239,9 @@
236 239 * removes the port information.
237 240 * @return static A new instance with the specified port.
238 241 * @throws \InvalidArgumentException for invalid ports.
239 242 */
240 - public function withPort($port);
243 + public function withPort(?int $port);
241 244
242 245 /**
243 246 * Return an instance with the specified path.
244 247 *
@@ -260,9 +263,9 @@
260 263 * @param string $path The path to use with the new instance.
261 264 * @return static A new instance with the specified path.
262 265 * @throws \InvalidArgumentException for invalid paths.
263 266 */
264 - public function withPath($path);
267 + public function withPath(string $path);
265 268
266 269 /**
267 270 * Return an instance with the specified query string.
268 271 *
@@ -277,9 +280,9 @@
277 280 * @param string $query The query string to use with the new instance.
278 281 * @return static A new instance with the specified query string.
279 282 * @throws \InvalidArgumentException for invalid query strings.
280 283 */
281 - public function withQuery($query);
284 + public function withQuery(string $query);
282 285
283 286 /**
284 287 * Return an instance with the specified URI fragment.
285 288 *
@@ -293,9 +296,9 @@
293 296 *
294 297 * @param string $fragment The fragment to use with the new instance.
295 298 * @return static A new instance with the specified fragment.
296 299 */
297 - public function withFragment($fragment);
300 + public function withFragment(string $fragment);
298 301
299 302 /**
300 303 * Return the string representation as a URI reference.
301 304 *