我刚刚将我的服务器更新到最新版本的 php 7.2,现在我收到了一些折旧警告。我应该怎么办?
自 PHP 7.2.0 起,该函数已被弃用。强烈建议不要依赖此功能。
这是我的代码:
if(!array_key_exists('callable', $this->translation_plural)) {
$this->translation_plural['callable'] = create_function('$n', $this->translation_plural['function']);
}