- error_reporting: documentation ( source)
<?php
error_reporting(0);
class A {
public function doSth(A $a) {
echo 'asd';
}
}
class B extends A {
public function doSth(B $a) {
echo 'qwe';
}
}
$a = new A();
$b = new B();
$b->doSth($b);