From: Matthias Schmidt Date: Fri, 13 Jul 2018 06:59:33 +0000 (+0200) Subject: Fix variable name in TMultipleFormField::maximumMultiples() X-Git-Tag: 5.2.0_Alpha_1~680^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec2ca0fc511df23aa86fdd217cd562afc867fff8;p=GitHub%2FWoltLab%2FWCF.git Fix variable name in TMultipleFormField::maximumMultiples() See #2509 --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php index b7e3b765c7..eddd4e09a5 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php @@ -93,7 +93,7 @@ trait TMultipleFormField { public function maximumMultiples(int $maximum): IMultipleFormField { if ($maximum !== IMultipleFormField::NO_MAXIMUM_MULTIPLES) { if ($maximum <= 0) { - throw new \InvalidArgumentException("The maximum number of values has to be positive, '{$minimum}' given."); + throw new \InvalidArgumentException("The maximum number of values has to be positive, '{$maximum}' given."); } if ($this->getMinimumMultiples() !== 0 && $maximum < $this->getMinimumMultiples()) {