改名
This commit is contained in:
@@ -100,7 +100,7 @@ trait HttpHeaders
|
|||||||
*/
|
*/
|
||||||
public function exists($name): bool
|
public function exists($name): bool
|
||||||
{
|
{
|
||||||
return $this->_headers[$name] ?? null === null;
|
return ($this->_headers[$name] ?? null) === null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ class Request extends HttpService implements RequestInterface
|
|||||||
/**
|
/**
|
||||||
* @return mixed|null
|
* @return mixed|null
|
||||||
*/
|
*/
|
||||||
public function getIp(): string|null
|
#[Pure] public function getIp(): string|null
|
||||||
{
|
{
|
||||||
$headers = $this->getHeaders();
|
$headers = $this->getHeaders();
|
||||||
if (!empty($headers['remoteip'])) return $headers['remoteip'];
|
if (!empty($headers['remoteip'])) return $headers['remoteip'];
|
||||||
|
|||||||
@@ -524,7 +524,6 @@ class Router extends HttpService implements RouterInterface
|
|||||||
* @param RequestInterface $request
|
* @param RequestInterface $request
|
||||||
* @return Node|null
|
* @return Node|null
|
||||||
* 树杈搜索
|
* 树杈搜索
|
||||||
* @throws RequestException
|
|
||||||
*/
|
*/
|
||||||
public function Branch_search(RequestInterface $request): ?Node
|
public function Branch_search(RequestInterface $request): ?Node
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user