rest api expand, url params

This commit is contained in:
apuc committed 2024-10-07 11:54:10 +03:00
1 parent 04da662275
commit c7e113e325
2 files changed
+8 -5

No files matched your search

+3 -3
View File
@@ -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;