改名
This commit is contained in:
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
namespace HttpServer\Route\Filter;
|
||||
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class FilterException extends \Exception
|
||||
@@ -18,7 +18,7 @@ class FilterException extends \Exception
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
#[Pure] public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ use Closure;
|
||||
use HttpServer\Http\Request;
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
use ReflectionException;
|
||||
use Snowflake\Core\JSON;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
@@ -81,7 +81,7 @@ class Node extends Application
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
#[Pure] public function hasInterceptor(): bool
|
||||
public function hasInterceptor(): bool
|
||||
{
|
||||
return count($this->_interceptors) > 0;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ class Node extends Application
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
#[Pure] public function hasLimits(): bool
|
||||
public function hasLimits(): bool
|
||||
{
|
||||
return count($this->_limits) > 0;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ class Node extends Application
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
#[Pure] public function hasAfter(): bool
|
||||
public function hasAfter(): bool
|
||||
{
|
||||
return count($this->_after) > 0;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ use Exception;
|
||||
use HttpServer\Http\Request;
|
||||
use HttpServer\IInterface\RouterInterface;
|
||||
use HttpServer\Application;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
use Snowflake\Abstracts\Config;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Exception\ConfigException;
|
||||
@@ -109,7 +109,7 @@ class Router extends Application implements RouterInterface
|
||||
* @param $path
|
||||
* @return string
|
||||
*/
|
||||
#[Pure] private function resolve($path): string
|
||||
private function resolve($path): string
|
||||
{
|
||||
$paths = array_column($this->groupTacks, 'prefix');
|
||||
if (empty($paths)) {
|
||||
|
||||
Reference in New Issue
Block a user