改名
This commit is contained in:
@@ -11,6 +11,7 @@ namespace HttpServer\Http;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use HttpServer\Exception\RequestException;
|
use HttpServer\Exception\RequestException;
|
||||||
|
use JetBrains\PhpStorm\Pure;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Snowflake\Core\Help;
|
use Snowflake\Core\Help;
|
||||||
use Snowflake\Core\Json;
|
use Snowflake\Core\Json;
|
||||||
@@ -150,7 +151,7 @@ class HttpParams
|
|||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function params(): array
|
#[Pure] public function params(): array
|
||||||
{
|
{
|
||||||
return array_merge($this->body ?? [], $this->files ?? []);
|
return array_merge($this->body ?? [], $this->files ?? []);
|
||||||
}
|
}
|
||||||
@@ -158,7 +159,7 @@ class HttpParams
|
|||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function load(): array
|
#[Pure] public function load(): array
|
||||||
{
|
{
|
||||||
return array_merge($this->files, $this->body, $this->gets);
|
return array_merge($this->files, $this->body, $this->gets);
|
||||||
}
|
}
|
||||||
@@ -231,8 +232,8 @@ class HttpParams
|
|||||||
* @param $name
|
* @param $name
|
||||||
* @param bool $isNeed
|
* @param bool $isNeed
|
||||||
* @param int $round
|
* @param int $round
|
||||||
* @return float
|
* @return float|null
|
||||||
* @throws Exception
|
* @throws RequestException
|
||||||
*/
|
*/
|
||||||
public function float($name, $isNeed = FALSE, $round = 0): ?float
|
public function float($name, $isNeed = FALSE, $round = 0): ?float
|
||||||
{
|
{
|
||||||
@@ -399,7 +400,7 @@ class HttpParams
|
|||||||
* @param $name
|
* @param $name
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function __get($name): mixed
|
#[Pure] public function __get($name): mixed
|
||||||
{
|
{
|
||||||
$load = $this->load();
|
$load = $this->load();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user