Skip to content

Commit 796b01f

Browse files
authored
Merge pull request #173 from fjgarlin/master
Check for the actual types that are not allowed
2 parents 4459adc + a60beea commit 796b01f

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)