From 602054932ca1db9bc81e1fab4d628118cc41d958 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 26 Nov 2017 17:17:00 +0100 Subject: [PATCH] Add missing parameter documentation --- .../lib/system/exception/PermissionDeniedException.class.php | 2 ++ .../files/lib/system/recaptcha/RecaptchaHandlerV2.class.php | 1 + .../notification/TestableUserNotificationEventHandler.class.php | 1 + 3 files changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php b/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php index 15b0a86c20..8ee7912e43 100644 --- a/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php +++ b/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php @@ -18,6 +18,8 @@ use wcf\system\WCFACP; class PermissionDeniedException extends UserException { /** * Creates a new PermissionDeniedException object. + * + * @param string|null $message custom error message */ public function __construct($message = null) { if ($message === null) $message = WCF::getLanguage()->getDynamicVariable('wcf.page.error.permissionDenied'); diff --git a/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandlerV2.class.php b/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandlerV2.class.php index c5c3c97475..c3d92fdc6f 100644 --- a/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandlerV2.class.php +++ b/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandlerV2.class.php @@ -20,6 +20,7 @@ class RecaptchaHandlerV2 extends SingletonFactory { * Validates response. * * @param string $response + * @param string $type * @throws UserInputException */ public function validate($response, $type = 'v2') { diff --git a/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php index 1a2e8bf8af..89e1254d82 100644 --- a/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php @@ -152,6 +152,7 @@ class TestableUserNotificationEventHandler extends SingletonFactory { /** * Returns the recipient of the notifications who is the active user. * + * @param Language|null $language * @return UserProfile */ public function getRecipient(Language $language = null) { -- 2.20.1