From: Tim Düsterhus Date: Thu, 5 Aug 2021 13:03:09 +0000 (+0200) Subject: Use less specific return type for ReauthenticationForm::getRedirectResponse() X-Git-Tag: 5.5.0_Alpha_1~493^2~5^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e40a8ea9bbb22caa21ea86af5f104c7e7f6ca454;p=GitHub%2FWoltLab%2FWCF.git Use less specific return type for ReauthenticationForm::getRedirectResponse() --- 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); }