PHP Linq->重构create_function

时间:2019-02-18 14:02:58

标签: php linq

我目前正在使用PHP Linq。现在,我将PHP版本迁移到7.2,并且遇到有关create_function的错误。我知道create_function在php7.2中已弃用。我需要一些帮助将下面的代码转换为php 7.2

public function getFunctionReference() {
    if (is_null($this->_functionReference)) {
        // Compile anonymous function
        $this->_functionReference = create_function($this->_parameterNames, $this->_functionCode);
    }

    return $this->_functionReference;
}

0 个答案:

没有答案
相关问题