- error_reporting: documentation ( source)
<?php
error_reporting(-1);
interface I
{
function foo();
static function bar();
}
class C implements I
{
public function foo() { echo "foo\n"; }
public static function bar() { echo "bar\n"; }
public function test()
{
$this->foo();
self::bar();
}
}
$c = new C();
$c->test();