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
2 changes: 2 additions & 0 deletions src/Http/IRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ function getUrl(): UrlScript;
/**
* Returns variable provided to the script via URL query ($_GET).
* If no key is passed, returns the entire array.
* @return ($key is null ? array : mixed)
*/
function getQuery(?string $key = null): mixed;

/**
* Returns variable provided to the script via POST method ($_POST).
* If no key is passed, returns the entire array.
* @return ($key is null ? array : mixed)
*/
function getPost(?string $key = null): mixed;

Expand Down
1 change: 1 addition & 0 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function getUrl(): UrlScript
/**
* Returns variable provided to the script via URL query ($_GET).
* If no key is passed, returns the entire array.
* @return ($key is null ? array : mixed)
*/
public function getQuery(?string $key = null): mixed
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @property string $host
* @property int $port
* @property string $path
* @property string $query
* @property array $query
* @property string $fragment
* @property-read string $absoluteUrl
* @property-read string $authority
Expand Down
2 changes: 1 addition & 1 deletion src/Http/UrlImmutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @property-read string $host
* @property-read int $port
* @property-read string $path
* @property-read string $query
* @property-read array $query
* @property-read string $fragment
* @property-read string $absoluteUrl
* @property-read string $authority
Expand Down
Loading