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.
1 parent f243720 commit 6aadd7fCopy full SHA for 6aadd7f
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