Skip to content

Commit 52251e4

Browse files
committed
NoSuspiciousCharacters custom error messages fix
1 parent 0c84351 commit 52251e4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Constraints/NoSuspiciousCharacters.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ public function __construct(
102102

103103
parent::__construct($options, $groups, $payload);
104104

105-
$this->restrictionLevelMessage ??= $restrictionLevelMessage;
106-
$this->invisibleMessage ??= $invisibleMessage;
107-
$this->mixedNumbersMessage ??= $mixedNumbersMessage;
108-
$this->hiddenOverlayMessage ??= $hiddenOverlayMessage;
109-
$this->checks ??= $checks;
110-
$this->restrictionLevel ??= $restrictionLevel;
111-
$this->locales ??= $locales;
105+
$this->restrictionLevelMessage = $restrictionLevelMessage ?? $this->restrictionLevelMessage;
106+
$this->invisibleMessage = $invisibleMessage ?? $this->invisibleMessage;
107+
$this->mixedNumbersMessage = $mixedNumbersMessage ?? $this->mixedNumbersMessage;
108+
$this->hiddenOverlayMessage = $hiddenOverlayMessage ?? $this->hiddenOverlayMessage;
109+
$this->checks = $checks ?? $this->checks;
110+
$this->restrictionLevel = $restrictionLevel ?? $this->restrictionLevel;
111+
$this->locales = $locales ?? $this->locales;
112112
}
113113
}

0 commit comments

Comments
 (0)