• Resolved BINAIR=E Group

    (@esd-network)


    Hi,

    Just wondering when you expect to update the /block/index.php script for PHP 7.4?

    I will need the plugin for a live site soon, only in dev mode now.

    For those who have the same problem after upgrading to PHP 7.4 here is the solution:

    You must use square brackets [] to access string offsets and array elements:

    $string = ‘abc’;
    echo $string[0]; // a

    $array = [1, 2, 3];
    echo $array[0]; // 1

    Simply replace all { } with [ ] on the error lines.

    Thank you for the nice plugin and all the best!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Array and string offset access syntax with curly braces is deprecated’ is closed to new replies.