diff --git a/src/Symfony/Component/Validator/Constraints/Cascade.php b/src/Symfony/Component/Validator/Constraints/Cascade.php index a1e03af411adc..fd12260b2fffb 100644 --- a/src/Symfony/Component/Validator/Constraints/Cascade.php +++ b/src/Symfony/Component/Validator/Constraints/Cascade.php @@ -28,7 +28,7 @@ class Cascade extends Constraint public function __construct(array|string|null $exclude = null, array $options = null) { if (\is_array($exclude) && !array_is_list($exclude)) { - $options = array_merge($exclude, $options); + $options = array_merge($exclude, $options ?? []); } else { $this->exclude = array_flip((array) $exclude); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy