Skip to content

Commit

Permalink
bugfix array multiple validation
Browse files Browse the repository at this point in the history
  • Loading branch information
zouravand committed May 15, 2023
1 parent 1ece72e commit 184f2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laravel/JalaliValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function validateDate($attribute, $value, $parameters)
public function validateDateMultiFormat(string $attribute, string $value, array $parameters): bool
{
foreach ($parameters as $format) {
if ($this->validateDate($attribute, $value, $format)) {
if ($this->validateDate($attribute, $value, [$format])) {
return true;
}
}
Expand Down

0 comments on commit 184f2c5

Please sign in to comment.