Skip to content

Commit 619dcdc

Browse files
committed
Merge branch '3.0'
* 3.0: The exception should be thrown if an object doesn't implement Traversable AND doesn't implement Countable, not when it doesn't implement Traversable but DOES implement Countable [Form] fix violation mapper tests [HttpKernel] Prevent a fatal error when DebugHandlersListener is used with a kernel with no terminateWithException() method don't rely on deprecated YAML parser feature
2 parents d809df0 + 3c7b1ef commit 619dcdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Question/Question.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function setAutocompleterValues($values)
143143
}
144144

145145
if (null !== $values && !is_array($values)) {
146-
if (!$values instanceof \Traversable || $values instanceof \Countable) {
146+
if (!$values instanceof \Traversable || !$values instanceof \Countable) {
147147
throw new InvalidArgumentException('Autocompleter values can be either an array, `null` or an object implementing both `Countable` and `Traversable` interfaces.');
148148
}
149149
}

0 commit comments

Comments
 (0)