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 3b8dcab + b829297 commit 801157eCopy full SHA for 801157e
Constraints/AbstractComparisonValidator.php
@@ -46,7 +46,7 @@ public function validate($value, Constraint $constraint)
46
if ($value instanceof \DateTimeImmutable) {
47
// If $value is immutable, convert the compared value to a
48
// DateTimeImmutable too
49
- $comparedValue = new \DatetimeImmutable($comparedValue);
+ $comparedValue = new \DateTimeImmutable($comparedValue);
50
} elseif ($value instanceof \DateTimeInterface) {
51
// Otherwise use DateTime
52
$comparedValue = new \DateTime($comparedValue);
0 commit comments