From e40a8ea9bbb22caa21ea86af5f104c7e7f6ca454 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 5 Aug 2021 15:03:09 +0200 Subject: [PATCH] Use less specific return type for ReauthenticationForm::getRedirectResponse() --- .../install/files/lib/form/ReauthenticationForm.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php index 91b420f793..3fbbd1b75d 100644 --- a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php @@ -3,6 +3,7 @@ namespace wcf\form; use Laminas\Diactoros\Response\RedirectResponse; +use Psr\Http\Message\ResponseInterface; use wcf\system\application\ApplicationHandler; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\PermissionDeniedException; @@ -108,11 +109,11 @@ class ReauthenticationForm extends AbstractFormBuilderForm } /** - * Returns a RedirectResponse for the redirectUrl. + * Returns a response redirecting to the redirectUrl. * * @see ReauthenticationForm::$redirectUrl */ - protected function getRedirectResponse(): RedirectResponse + protected function getRedirectResponse(): ResponseInterface { return new RedirectResponse($this->redirectUrl); } -- 2.20.1