mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Added property types to some classes
This commit is contained in:
@@ -18,10 +18,8 @@ use function rtrim;
|
||||
|
||||
class NotFoundRedirectHandler implements MiddlewareInterface
|
||||
{
|
||||
/** @var NotFoundRedirectOptions */
|
||||
private $redirectOptions;
|
||||
/** @var string */
|
||||
private $shlinkBasePath;
|
||||
private NotFoundRedirectOptions $redirectOptions;
|
||||
private string $shlinkBasePath;
|
||||
|
||||
public function __construct(NotFoundRedirectOptions $redirectOptions, string $shlinkBasePath)
|
||||
{
|
||||
|
||||
@@ -18,8 +18,7 @@ class NotFoundTemplateHandler implements RequestHandlerInterface
|
||||
public const NOT_FOUND_TEMPLATE = 'ShlinkCore::error/404';
|
||||
public const INVALID_SHORT_CODE_TEMPLATE = 'ShlinkCore::invalid-short-code';
|
||||
|
||||
/** @var TemplateRendererInterface */
|
||||
private $renderer;
|
||||
private TemplateRendererInterface $renderer;
|
||||
|
||||
public function __construct(TemplateRendererInterface $renderer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user