Skip to content

Commit

Permalink
format validation change
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Jan 30, 2024
1 parent 9bd2555 commit 87f72ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Validator/Structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function isValid($document): bool
if ($format) {
// Format encoded as json string containing format name and relevant format options
$format = self::getFormat($format, $type);
$validators = [$format['callback']($attribute)];
$validators[] = $format['callback']($attribute);
}

if ($array) { // Validate attribute type for arrays - format for arrays handled separately
Expand Down

0 comments on commit 87f72ad

Please sign in to comment.