Skip to content

Commit 660e017

Browse files
authored
[9.x] Use dedicated method for placeholdr replacement (#44296)
1 parent 426f12c commit 660e017

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Illuminate/Validation/Validator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -875,11 +875,7 @@ public function addFailure($attribute, $rule, $parameters = [])
875875

876876
$attributeWithPlaceholders = $attribute;
877877

878-
$attribute = str_replace(
879-
[$this->dotPlaceholder, '__asterisk__'],
880-
['.', '*'],
881-
$attribute
882-
);
878+
$attribute = $this->replacePlaceholderInString($attribute);
883879

884880
if (in_array($rule, $this->excludeRules)) {
885881
return $this->excludeAttribute($attribute);

0 commit comments

Comments
 (0)