We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8a4068 + 6aadd7f commit b829297Copy full SHA for b829297
Constraints/AbstractComparisonValidator.php
@@ -47,7 +47,7 @@ public function validate($value, Constraint $constraint)
47
if ($value instanceof \DateTimeImmutable) {
48
// If $value is immutable, convert the compared value to a
49
// DateTimeImmutable too
50
- $comparedValue = new \DatetimeImmutable($comparedValue);
+ $comparedValue = new \DateTimeImmutable($comparedValue);
51
} elseif ($value instanceof \DateTime || $value instanceof \DateTimeInterface) {
52
// Otherwise use DateTime
53
$comparedValue = new \DateTime($comparedValue);
0 commit comments