Skip to content

Commit

Permalink
fix buildMessage args
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Mar 3, 2022
1 parent 4d0b147 commit 11a09f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function getErrorMessage(string $attribute, string|RuleContract $rule): a
$message,
$attribute,
get_class($rule),
[]
);
}

Expand All @@ -65,7 +66,7 @@ public function getErrorMessage(string $attribute, string|RuleContract $rule): a
* @param array $parameters
* @return string
*/
protected function buildMessage(string $message, string $attribute, string $rule, array $parameters = []): string
protected function buildMessage(string $message, string $attribute, string $rule, array $parameters): string
{
$result = $this->makeReplacements(...func_get_args());

Expand Down

0 comments on commit 11a09f4

Please sign in to comment.