We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getRules() instead
$this->rules
1 parent 957cf0d commit f736f34Copy full SHA for f736f34
framework/core/src/Foundation/AbstractValidator.php
@@ -107,7 +107,7 @@ protected function getAttributeNames()
107
$extId = $this->getClassExtensionId();
108
$attributeNames = [];
109
110
- foreach (array_keys($this->rules) as $attribute) {
+ foreach (array_keys($this->getRules()) as $attribute) {
111
$key = $extId ? "$extId.validation.attributes.$attribute" : "validation.attributes.$attribute";
112
$attributeNames[$attribute] = $this->translator->trans($key);
113
}
0 commit comments