Skip to content

Commit 9e3c631

Browse files
authored
Merge pull request #710 from DannyvdSluijs/pr-641-alternative
refactor: Remove dead block of code
2 parents 42011a6 + 67cff3b commit 9e3c631

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/JsonSchema/Constraints/FormatConstraint.php

-8
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,6 @@ protected function validateDateTime($datetime, $format)
184184
return true;
185185
}
186186

187-
// handles the case where a non-6 digit microsecond datetime is passed
188-
// which will fail the above string comparison because the passed
189-
// $datetime may be '2000-05-01T12:12:12.123Z' but format() will return
190-
// '2000-05-01T12:12:12.123000Z'
191-
if ((strpos('u', $format) !== -1) && (preg_match('/\.\d+Z$/', $datetime))) {
192-
return true;
193-
}
194-
195187
return false;
196188
}
197189

0 commit comments

Comments
 (0)