Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated function with php7.2 #129

Open
yatskanich opened this issue May 2, 2019 · 1 comment
Open

Deprecated function with php7.2 #129

yatskanich opened this issue May 2, 2019 · 1 comment

Comments

@yatskanich
Copy link

In stable and and dev version, i have same error with php 7.2

yii\base\ErrorException: Function create_function() is deprecated in /vendor/mihaildev/yii2-elfinder/elFinderApi.php:25

You need to update code

from: $_getcmd = create_function('$cmd', 'list($ret) = explode('.', $cmd);return trim($ret);');

to: $_getcmd = function ($cmd) {
list($ret) = explode('.', $cmd);return trim($ret);
};

And its works fine.
Thanks a lot.

@scorpsan
Copy link
Contributor

scorpsan commented Jun 6, 2019

Да это работает на версии Yii2 2.0.20 на локальном хостинге

MihailDev added a commit that referenced this issue Jun 7, 2019
Deprecated function with php7.2 #129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants