Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,13 @@ public function getPost(string $name = null, $filters = null, $defaultValue = nu
}

/**
* Gets a variable from put request
* Gets a variable from the PUT request
*
* ```php
* // Returns value from $_PUT["user_email"] without sanitizing
* // Returns value from PUT stream without sanitizing
* $userEmail = $request->getPut("user_email");
*
* // Returns value from $_PUT["user_email"] with sanitizing
* // Returns value from PUT stream with sanitizing
* $userEmail = $request->getPut("user_email", "email");
* ```
*
Expand Down
6 changes: 3 additions & 3 deletions src/Http/RequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ public function getURI(bool $onlyPath = false): string;
public function getPost(string $name = null, $filters = null, $defaultValue = null, bool $notAllowEmpty = false, bool $noRecursive = false): mixed;

/**
* Gets a variable from put request
* Gets a variable from the PUT request
*
* ```php
* // Returns value from $_PUT["user_email"] without sanitizing
* // Returns value from PUT stream without sanitizing
* $userEmail = $request->getPut("user_email");
*
* // Returns value from $_PUT["user_email"] with sanitizing
* // Returns value from PUT stream with sanitizing
* $userEmail = $request->getPut("user_email", "email");
* ```
*
Expand Down