5 public function __toDebugDisplay() { return "lol"; }
8 function test($thing) {
9 echo "==== " . get_class($thing) . " ====\n";
10 // 9 == VariableSerializer::Type::DebuggerSerialize
11 var_dump(__hhvm_intrinsics\
serialize_with_format($thing, 9));
16 set_error_handler(($errno, $string) ==> {
17 if ($errno === E_NOTICE
&&
18 strpos($string, "Lval on missing array element") !== false) {
19 throw new Exception("lol");