Skip to content

Commit 9c62410

Browse files
committed
[Validator] Handle null case
1 parent 82ad219 commit 9c62410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Constraints/Cascade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Cascade extends Constraint
2828
public function __construct(array|string|null $exclude = null, array $options = null)
2929
{
3030
if (\is_array($exclude) && !array_is_list($exclude)) {
31-
$options = array_merge($exclude, $options);
31+
$options = array_merge($exclude, $options ?? []);
3232
} else {
3333
$this->exclude = array_flip((array) $exclude);
3434
}

0 commit comments

Comments
 (0)