You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
Copy file name to clipboardExpand all lines: Question/Question.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ public function setAutocompleterValues($values)
143
143
}
144
144
145
145
if (null !== $values && !is_array($values)) {
146
-
if (!$valuesinstanceof \Traversable || $valuesinstanceof \Countable) {
146
+
if (!$valuesinstanceof \Traversable || !$valuesinstanceof \Countable) {
147
147
thrownewInvalidArgumentException('Autocompleter values can be either an array, `null` or an object implementing both `Countable` and `Traversable` interfaces.');
0 commit comments