Skip to content

Commit 9805887

Browse files
committed
Fix: PUT documentation
There is no $_PUT superglobal in PHP
1 parent f9cc448 commit 9805887

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Http/Request.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,13 @@ public function getPost(string $name = null, $filters = null, $defaultValue = nu
446446
}
447447

448448
/**
449-
* Gets a variable from put request
449+
* Gets a variable from the PUT request
450450
*
451451
* ```php
452-
* // Returns value from $_PUT["user_email"] without sanitizing
452+
* // Returns value from PUT stream without sanitizing
453453
* $userEmail = $request->getPut("user_email");
454454
*
455-
* // Returns value from $_PUT["user_email"] with sanitizing
455+
* // Returns value from PUT stream with sanitizing
456456
* $userEmail = $request->getPut("user_email", "email");
457457
* ```
458458
*

src/Http/RequestInterface.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ public function getURI(bool $onlyPath = false): string;
258258
public function getPost(string $name = null, $filters = null, $defaultValue = null, bool $notAllowEmpty = false, bool $noRecursive = false): mixed;
259259

260260
/**
261-
* Gets a variable from put request
261+
* Gets a variable from the PUT request
262262
*
263263
* ```php
264-
* // Returns value from $_PUT["user_email"] without sanitizing
264+
* // Returns value from PUT stream without sanitizing
265265
* $userEmail = $request->getPut("user_email");
266266
*
267-
* // Returns value from $_PUT["user_email"] with sanitizing
267+
* // Returns value from PUT stream with sanitizing
268268
* $userEmail = $request->getPut("user_email", "email");
269269
* ```
270270
*

0 commit comments

Comments
 (0)