fightbulc / moment.php

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Other
973 stars 154 forks source link

Match signature for DateTime::createFromFormat and return FALSE on failure #194

Closed jcherniak closed 4 years ago

jcherniak commented 4 years ago

Follow up to #123, if an invalid value is passed in, Moment::createFromFormat should return FALSE, as DateTime::createFromFormat does, instead of throwing a TypeError from passing false to Moment::fromDateTime.

fightbulc commented 4 years ago

Thanks