Skip to content

Commit

Permalink
Merge pull request #154 from zouravand/master
Browse files Browse the repository at this point in the history
bugfix array multiple validation
  • Loading branch information
hekmatinasser authored May 15, 2023
2 parents 1ece72e + 184f2c5 commit 5ef1477
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 5ef1477

Please sign in to comment.