the getDateTime function currently returns a type of ?DateTimeInterface, which could be a DateTime or DateTimeImmutable or other DateTime-derived class. Would it make more sense to decide on which concrete class to return? Maybe DateTimeImmutable would be the best choice? Maybe DateTime would be easier and better DX for people?
the
getDateTimefunction currently returns a type of?DateTimeInterface, which could be aDateTimeorDateTimeImmutableor other DateTime-derived class. Would it make more sense to decide on which concrete class to return? MaybeDateTimeImmutablewould be the best choice? MaybeDateTimewould be easier and better DX for people?