Skip to content

Commit eb2355f

Browse files
WebMambafabpot
authored andcommitted
Ban DateTime from the codebase
1 parent 8693416 commit eb2355f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Comparator/DateComparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(string $test)
3030
}
3131

3232
try {
33-
$date = new \DateTime($matches[2]);
33+
$date = new \DateTimeImmutable($matches[2]);
3434
$target = $date->format('U');
3535
} catch (\Exception) {
3636
throw new \InvalidArgumentException(sprintf('"%s" is not a valid date.', $matches[2]));

0 commit comments

Comments
 (0)