We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfdb2dc commit 68cf696Copy full SHA for 68cf696
src/Fieldset.php
@@ -209,11 +209,12 @@ public function buildError(string $errorType)
209
*/
210
public function isValid($values, bool $multipleErrors = false, bool $fromParent = false): bool
211
{
212
- if (!is_array($values) && !is_object($values)) {
+ if (!is_array($values) && !is_object($values) && !is_null($values)) {
213
return $this->buildError('valuesType');
214
}
215
216
if (is_object($values)) $values = (array) $values;
217
+ else if (is_null($values)) $values = [];
218
$this->valuesBefore = &$values;
219
$this->values = [];
220
$this->errors()->clear();
0 commit comments