- error_reporting: documentation ( source)
<?php
error_reporting(-1);
function callbackFunction() {}
class Foo {
public function applyA(callable $errorCallback = null, bool $showProgress) {}
public function applyB(stdClass $object = null, bool $showProgress) {}
public function applyC($withoutTypeDeclaration = null, bool $showProgress) {}
}
$foo = new Foo;
$foo->applyA('callbackFunction', true);
$foo->applyB(new stdClass, true);
$foo->applyC(new stdClass, true);