feat: Строгие типы для HttpRequest
This commit is contained in:
parent
5170ed8ed5
commit
74aa44bdc0
2 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ class Collection implements \ArrayAccess
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param int $default
|
* @param int $default
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getInt($key, $default = 0)
|
public function getInt($key, $default = 0)
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class HttpRequest extends Collection
|
||||||
/**
|
/**
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param mixed $default
|
* @param mixed $default
|
||||||
* @return mixed
|
* @return null|string|array
|
||||||
*/
|
*/
|
||||||
function get($key, $default = null)
|
function get($key, $default = null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue