Skip to content

Commit 7988520

Browse files
committed
Fix typos
1 parent 600ae91 commit 7988520

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function options($options, $nestedOptions = false, $labelLanguageItems =
165165
if ($nestedOptions) {
166166
foreach ($options as $key => &$option) {
167167
if (!\is_array($option)) {
168-
throw new \InvalidArgumentException("Nested option with key '{$key}' has is no array for field '{$this->getId()}'.");
168+
throw new \InvalidArgumentException("Nested option with key '{$key}' is no array for field '{$this->getId()}'.");
169169
}
170170

171171
// check if all required elements exist
@@ -186,12 +186,12 @@ public function options($options, $nestedOptions = false, $labelLanguageItems =
186186
$option['label'] = $option['label']->getTitle();
187187
} else {
188188
throw new \InvalidArgumentException(
189-
"Nested option with key '{$key}' contain invalid label of type " . \gettype($option['label']) . " for field '{$this->getId()}'."
189+
"Nested option with key '{$key}' has invalid label of type " . \gettype($option['label']) . " for field '{$this->getId()}'."
190190
);
191191
}
192192
} elseif (!\is_string($option['label']) && !\is_numeric($option['label'])) {
193193
throw new \InvalidArgumentException(
194-
"Nested option with key '{$key}' contain invalid label of type " . \gettype($option['label']) . " for field '{$this->getId()}'."
194+
"Nested option with key '{$key}' has invalid label of type " . \gettype($option['label']) . " for field '{$this->getId()}'."
195195
);
196196
}
197197

@@ -206,7 +206,7 @@ public function options($options, $nestedOptions = false, $labelLanguageItems =
206206
// validate value
207207
if (!\is_string($option['value']) && !\is_numeric($option['value'])) {
208208
throw new \InvalidArgumentException(
209-
"Nested option with key '{$key}' contain invalid value of type " . \gettype($option['label']) . " for field '{$this->getId()}'."
209+
"Nested option with key '{$key}' has invalid value of type " . \gettype($option['label']) . " for field '{$this->getId()}'."
210210
);
211211
} elseif (isset($this->options[$option['value']])) {
212212
throw new \InvalidArgumentException(

0 commit comments

Comments
 (0)