As this can now be for both, the error message should include both DateTime and DateTimeImmutable.