Quote:
Originally Posted by mariosipad
@jajaX
I just found out there is an error in the post #1890 I made.
Below you'll find the correction in red.
How:
1 - open file ../cops/vendor/seblucas/dot-php/doT.php
2 - change line 94
Code:
return @create_function ('$it', $func);
3 - to
Code:
return @function ($it) use ($func) {
return eval($func);
};
I did it like this:
Code:
// For PHP 8 replace this line
//return create_function ('$it', $func);
// with
return function ($it) use ($func) {
return eval($func);
};
// end replace
Now it should work.
|
Hi,
I confirm => it's works !!
thank you very much