getClassEntryPtr(\Closure::class); $fn = $ce . ', ' . $this->getFuncPtr('Closure::fromCallable'); $tmpVar = $this->genTmpVarName(); if ($this->classDef) { $this->beforeStmtLines[] = "auto $tmpVar = php_switch_scope(this_);"; $this->afterStmtLines[] = "php_restore_scope($tmpVar);"; } return 'php::call(' . $fn . ', {' . $callable . '})'; } }