- error_reporting: documentation ( source)
- set_error_handler: documentation ( source)
<?php
class A {}
function test(B $b) { echo 'called'; }
error_reporting(E_ALL ^ E_RECOVERABLE_ERROR);
set_error_handler(function () { return FALSE; });
test(new A);