改名
This commit is contained in:
@@ -554,10 +554,10 @@ class Node extends HttpService
|
||||
|
||||
|
||||
/**
|
||||
* @return Validator
|
||||
* @return Validator|bool
|
||||
* @throws Exception
|
||||
*/
|
||||
private function getValidator(): Validator
|
||||
private function getValidator(): Validator|bool
|
||||
{
|
||||
/** @var HttpFilter $filter */
|
||||
$filter = Snowflake::app()->get('filter');
|
||||
@@ -565,20 +565,6 @@ class Node extends HttpService
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
private function runWith(): mixed
|
||||
{
|
||||
if (func_num_args() > 0) {
|
||||
return call_user_func($this->callback, ...func_get_args());
|
||||
} else {
|
||||
return call_user_func($this->callback, \request());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user