From 5c035d230bad1392144cca88105b473d536c6dcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 10 Aug 2021 16:06:04 +0200 Subject: [PATCH] Add missing `@since` tags for PSR-7 methods --- .../install/files/lib/form/ReauthenticationForm.class.php | 1 + wcfsetup/install/files/lib/page/AbstractPage.class.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php index 3fbbd1b75d..6a90c62b61 100644 --- a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php @@ -112,6 +112,7 @@ class ReauthenticationForm extends AbstractFormBuilderForm * Returns a response redirecting to the redirectUrl. * * @see ReauthenticationForm::$redirectUrl + * @since 5.5 */ protected function getRedirectResponse(): ResponseInterface { diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index 6a62edd0fb..51c738a240 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -108,6 +108,7 @@ abstract class AbstractPage implements IPage /** * @var ?ResponseInterface + * @since 5.5 */ private $psr7Response; @@ -444,6 +445,7 @@ abstract class AbstractPage implements IPage * Calls setResponse() if the parameter implements the ResponseInterface. * * @see AbstractPage::setPsr7Response() + * @since 5.5 */ final protected function maybeSetPsr7Response($response): void { @@ -456,6 +458,8 @@ abstract class AbstractPage implements IPage * Sets the PSR-7 response to return. Processing will be aborted after * readParameters(), readData() or show() if the response is non-null * and the response will be returned to the RequestHandler. + * + * @since 5.5 */ final protected function setPsr7Response(?ResponseInterface $response): void { @@ -466,6 +470,7 @@ abstract class AbstractPage implements IPage * Returns the current response as set using setResponse(). * * @see AbstractPage::setPsr7Response() + * @since 5.5 */ final protected function getPsr7Response(): ?ResponseInterface { @@ -477,6 +482,7 @@ abstract class AbstractPage implements IPage * * @see AbstractPage::getPsr7Response() * @see AbstractPage::setPsr7Response() + * @since 5.5 */ final protected function hasPsr7Response(): bool { -- 2.20.1