- error_reporting: documentation ( source)
<?php
namespace extension\calendar\classes {
error_reporting(E_ALL);
class Test extends \DateTime {
public function add(\DateInterval $interval) {
return parent::add($interval); // TODO: Change the autogenerated stub
}
}
$t=new Test();
$t->add(new \DateInterval('P4M'));
echo $t->format(\DateTime::W3C);
}