From 3c6c13077acbd037b60748a2d24049f0d5d1c9b4 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 20 Oct 2023 11:02:42 +0200 Subject: [PATCH] [Validator] Handle `null` case --- src/Symfony/Component/Validator/Constraints/Cascade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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