Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 08e955f

Browse filesBrowse files
committed
NoSuspiciousCharacters custom error messages fix
1 parent 4888da0 commit 08e955f
Copy full SHA for 08e955f

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php
+7-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.