I've got this code snippet written by another dev
$date = DateTime::createFromFormat('U.u', microtime(TRUE));
$dateMicro = $date->format('Y-m-d H:i:s.u');
It's throwing this error:
Error: Call to a member function format() on bool
I guess which could mean createFromFormat returned false but I can't figure out why it did that.
What could be the cause of this?
Thank you for your time!