TypeError thrown

get_object_vars(): Argument #1 ($object) must be of type object, string given