- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL | E_STRICT);
class Super {
public function foo($argument) {
echo $argument;
}
}
class Child extends Super {
public function foo() {
parent::foo('bar');
}
}
$child = new Child();
$child->foo();