View Single Post
Old 03-20-2023, 12:58 PM   #1903
jajaX
Junior Member
jajaX began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2022
Device: samsung galaxy Z fold 2 5G
Smile

Quote:
Originally Posted by mariosipad View Post
@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
jajaX is offline   Reply With Quote