Skip to content

Commit b006daa

Browse files
authored
Also check for is_object
1 parent f42b0c6 commit b006daa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BrowserKitDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function setValue(string $xpath, $value)
423423
return;
424424
}
425425

426-
if (\is_array($value) || \is_bool($value)) {
426+
if (\is_array($value) || \is_bool($value) || \is_object($value)) {
427427
throw new DriverException('Textual and file form fields don\'t support array or boolean values');
428428
}
429429

0 commit comments

Comments
 (0)