<?php class Test { public function data() { return new DateTime(); } } $a = new Test(); var_dump($a->data()->getLastErrors()); ?>
You have javascript disabled. You will not be able to edit any code.