Open
Description
Hi,
It looks like the rescue
function used in AutomaticDateFormatWithMilliseconds
and in AutomaticDateFormat
is not part of the dependencies.
It seem to be only in the framwork package:
To solve the issue in my package I added:
function rescue(callable $callback, $rescue = null, $report = true)
{
try {
return $callback();
} catch (Throwable $e) {
if (value($report, $e) && function_exists('report')) {
report($e);
}
return value($rescue, $e);
}
}
However would you be interested to add this to your package ? Or remove the use of rescue
? Or be fine with the current state :-)