Skip to content

Commit

Permalink
Swap error messages Exist and Format
Browse files Browse the repository at this point in the history
  • Loading branch information
roerlemans authored and danielebarbaro committed Jul 2, 2024
1 parent 84a7ab1 commit ff064f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rules/VatNumberExist.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class VatNumberExist implements ValidationRule
public function validate(string $attribute, mixed $value, Closure $fail): void
{
if (! VatValidator::validateExistence($value)) {
$fail(__('The :attribute must be write in a valid number format {country_name}{vat_number}.'));
$fail(__('VAT number :attribute not exist.'));
}
}
}
2 changes: 1 addition & 1 deletion src/Rules/VatNumberFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class VatNumberFormat implements ValidationRule
public function validate(string $attribute, mixed $value, \Closure $fail): void
{
if (! VatValidator::validateFormat($value)) {
$fail(__('VAT number :attribute not exist.'));
$fail(__('The :attribute must be write in a valid number format {country_name}{vat_number}.'));
}
}
}

0 comments on commit ff064f1

Please sign in to comment.