Merge pull request #154 from zouravand/master
bugfix array multiple validation
This commit is contained in:
1 file changed
+1
-1
@@ -40,7 +40,7 @@ class JalaliValidator
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user