Skip to content

Commit

Permalink
Merge pull request #173 from fjgarlin/master
Browse files Browse the repository at this point in the history
Check for the actual types that are not allowed
  • Loading branch information
stof authored Jun 19, 2023
2 parents 4459adc + a60beea commit 796b01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BrowserKitDriver.php
Original file line number Diff line number Diff line change
@@ -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');
}

0 comments on commit 796b01f

Please sign in to comment.