Fix variable name in TMultipleFormField::maximumMultiples()
authorMatthias Schmidt <gravatronics@live.com>
Fri, 13 Jul 2018 06:59:33 +0000 (08:59 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 13 Jul 2018 06:59:33 +0000 (08:59 +0200)
See #2509

wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php

index b7e3b765c72cce163cf23db87e4dfe207a41bac2..eddd4e09a54a6c519121fdbaea74e72daee83f0e 100644 (file)
@@ -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()) {