rest api expand, url params
This commit is contained in:
@ -119,11 +119,11 @@ class Request
|
||||
|
||||
/**
|
||||
* Возвращает GET - параметр.
|
||||
* @param string $param Параметр.
|
||||
* @param mixed $defaultValue Значение если, параметр не передан.
|
||||
* @param string|null $param Параметр.
|
||||
* @param mixed|null $defaultValue Значение если, параметр не передан.
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($param = null, $defaultValue = null): mixed
|
||||
public function get(string $param = null, mixed $defaultValue = null): mixed
|
||||
{
|
||||
if (is_null($param)) {
|
||||
return $_GET;
|
||||
|
Reference in New Issue
Block a user