- error_reporting: documentation ( source)
<?php
error_reporting(0);
class Something {
public function run() {
// instace method called statically.
Crazy::doSomething();
}
public function log($var) {
echo $var;
}
}
class Crazy {
public function doSomething() {
$this->log('Hello World');
}
}
(new Something)->run();