111
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace Server\Abstracts;
|
||||
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -13,7 +15,7 @@ class PageNotFoundException extends \Exception
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function __construct(int $code)
|
||||
#[Pure] public function __construct(int $code)
|
||||
{
|
||||
parent::__construct('<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>', $code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user