diff --git a/src/BrowserKitDriver.php b/src/BrowserKitDriver.php index b80e9ae..00627c3 100644 --- a/src/BrowserKitDriver.php +++ b/src/BrowserKitDriver.php @@ -423,7 +423,7 @@ public function setValue(string $xpath, $value) return; } - if (!\is_string($value) && null !== $value) { + if (\is_array($value) || \is_bool($value)) { throw new DriverException('Textual and file form fields don\'t support array or boolean values'); }