This commit is contained in:
2021-04-20 12:08:47 +08:00
parent 84f4bf14e0
commit 993beab42b
+2 -16
View File
@@ -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
*/