Use less specific return type for ReauthenticationForm::getRedirectResponse()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 5 Aug 2021 13:03:09 +0000 (15:03 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 5 Aug 2021 13:03:39 +0000 (15:03 +0200)
wcfsetup/install/files/lib/form/ReauthenticationForm.class.php

index 91b420f793fe424c494582d522f3f2dca2648d9b..3fbbd1b75deaed0fe0ae981b89ab5dfbfd386d4d 100644 (file)
@@ -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);
     }