- error_reporting: documentation ( source)
<?php
error_reporting(0);
class A {
public function foo() {
static::bar();
}
public function bar() {
echo "A::bar";
}
}
class B {
public function something() {
A::foo();
}
public function bar() {
echo "B::bar";
}
}
$b = new B;
$b->something();