Skip to content

Commit dfb1367

Browse files
authored
Merge pull request #91 from Ed-leRoux/custom-format-patch-1
Fixed FormatKeyword
2 parents d9e52aa + 3c21f4e commit dfb1367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Keywords/FormatKeyword.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio
5656
}
5757

5858
$format = $this->types[$type];
59-
if ($type instanceof Format) {
59+
if ($format instanceof Format) {
6060
$ok = $format->validate($context->currentData());
6161
} else {
6262
$ok = $format($context->currentData());
@@ -71,4 +71,4 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio
7171
'type' => $type,
7272
]);
7373
}
74-
}
74+
}

0 commit comments

Comments
 (0)