<b>Warning</b>: Creating default object from empty value in code example Example: Creating default object from empty value $res = new \stdClass(); $res->success = false;