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.
null
1 parent 82ad219 commit 9c62410Copy full SHA for 9c62410
Constraints/Cascade.php
@@ -28,7 +28,7 @@ class Cascade extends Constraint
28
public function __construct(array|string|null $exclude = null, array $options = null)
29
{
30
if (\is_array($exclude) && !array_is_list($exclude)) {
31
- $options = array_merge($exclude, $options);
+ $options = array_merge($exclude, $options ?? []);
32
} else {
33
$this->exclude = array_flip((array) $exclude);
34
}
0 commit comments