diff --git a/src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php b/src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php index 7548703f342a0..ee2703b58c4e2 100644 --- a/src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php +++ b/src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php @@ -102,12 +102,12 @@ public function __construct( parent::__construct($options, $groups, $payload); - $this->restrictionLevelMessage ??= $restrictionLevelMessage; - $this->invisibleMessage ??= $invisibleMessage; - $this->mixedNumbersMessage ??= $mixedNumbersMessage; - $this->hiddenOverlayMessage ??= $hiddenOverlayMessage; - $this->checks ??= $checks; - $this->restrictionLevel ??= $restrictionLevel; - $this->locales ??= $locales; + $this->restrictionLevelMessage = $restrictionLevelMessage ?? $this->restrictionLevelMessage; + $this->invisibleMessage = $invisibleMessage ?? $this->invisibleMessage; + $this->mixedNumbersMessage = $mixedNumbersMessage ?? $this->mixedNumbersMessage; + $this->hiddenOverlayMessage = $hiddenOverlayMessage ?? $this->hiddenOverlayMessage; + $this->checks = $checks ?? $this->checks; + $this->restrictionLevel = $restrictionLevel ?? $this->restrictionLevel; + $this->locales = $locales ?? $this->locales; } }
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: