From 75aa3be9316d4f593fe0a32ad01e4b3071896b9e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 16 Mar 2019 15:45:21 +0100 Subject: [PATCH] Fix typos in form builder documentation and exceptions See #2509 --- .../files/lib/system/form/builder/TFormElement.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/TFormElement.class.php b/wcfsetup/install/files/lib/system/form/builder/TFormElement.class.php index eec6be8a2c..95bfca3d31 100644 --- a/wcfsetup/install/files/lib/system/form/builder/TFormElement.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/TFormElement.class.php @@ -35,7 +35,7 @@ trait TFormElement { * @param array $variables additional variables used when resolving the language item * @return static this element * - * @throws \InvalidArgumentException if the given description is no or otherwise is invalid + * @throws \InvalidArgumentException if the given description is no string or otherwise is invalid */ public function description($languageItem = null, array $variables = []) { if ($languageItem === null) { @@ -83,7 +83,7 @@ trait TFormElement { * @param array $variables additional variables used when resolving the language item * @return static this element * - * @throws \InvalidArgumentException if the given label is no or otherwise is invalid + * @throws \InvalidArgumentException if the given label is no string or otherwise is invalid */ public function label($languageItem = null, array $variables = []) { if ($languageItem === null) { @@ -95,7 +95,7 @@ trait TFormElement { } else { if (!is_string($languageItem)) { - throw new \InvalidArgumentException("Given description language item is no string, " . gettype($languageItem) . " given."); + throw new \InvalidArgumentException("Given label language item is no string, " . gettype($languageItem) . " given."); } $this->label = WCF::getLanguage()->getDynamicVariable($languageItem, $variables); -- 2.20.1