Re: CakePHP 3.1.6 - Time::_formatObject throws exception "calling ->format on a null" on what should be valid data
Ok, the docs do say that the $format variable can be either an array of two integers or a single string value specifying a pattern. I see no reason that the array could not be two patterns, but will just cover my calls to i18nFormat with another function to make the corrections.
The _formatObject does exactly what the docs say! Maybe the docs could emphasize it a littler more, and the function should probably throw a more informative InvalidArgumentException?
On Tuesday, January 5, 2016 at 5:29:30 PM UTC-7, glk wrote:
I've modified the Time::_formatObject function allow some debug info (beginning at line 617) as follows: