- set_error_handler: documentation ( source)
<?php
set_error_handler(function () {});
//error_reporting(0); // Yeah, not the best solution
class SomeClass {}
function test(SomeClass $instance) { echo 'wtf: '.$instance; }
// NOTE: E_RECOVERABLE_ERROR (4096) occurs here
test(1);
q();
test(2);