We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
Да это работает на версии Yii2 2.0.20 на локальном хостинге
Sorry, something went wrong.
Merge pull request #130 from scorpsan/patch-1
adc705b
Deprecated function with php7.2 #129
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: