Skip to content

Commit f42b0c6

Browse files
authored
Update BrowserKitDriver.php
Check for unsupported types
1 parent 4459adc commit f42b0c6

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_string($value) && null !== $value) {
426+
if (\is_array($value) || \is_bool($value)) {
427427
throw new DriverException('Textual and file form fields don\'t support array or boolean values');
428428
}
429429

0 commit comments

Comments
 (0)