You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What type of DateTime should this library return in this case? I like the simplicity of DateTime, and with it being a getter it probably doesn't matter about immutability of the object itself, but would it make more sense or would it potentially confuse someone if the returned object was DateTimeImmutable?
The text was updated successfully, but these errors were encountered:
$dateFrom = $input->getDateTime("date-from");
What type of DateTime should this library return in this case? I like the simplicity of
DateTime
, and with it being a getter it probably doesn't matter about immutability of the object itself, but would it make more sense or would it potentially confuse someone if the returned object wasDateTimeImmutable
?The text was updated successfully, but these errors were encountered: