• Resolved E

    (@episen)


    In mla-hooks-example.php, we found an array still using curly braces. This no longer works, starting with PHP 8.x.

    Example:

    You had if ( ‘_’ == $post_meta_key{0} ); but it now needs to be if ( ‘_’ == $post_meta_key[0] )

    You may want to make sure that all instances of curly braces for array (and even string) indexes are changed to the square brackets or it will affect everyone on the latest versions of PHP.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and for the details on the location of the issue; very helpful.

    I have gone through all the MLA core code and removed any PHP 8.x problems, but I haven’t done the same process with the example plugins, such as mla-hooks-example.php. I appreciate the reminder, and I will make the required changes in my next update.

    I will leave this topic unresolved for now and update it when the next version goes out. Thanks for your interest in the plugin(s).

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 3.00, which contains the fixes required for this topic.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding MLA’s support for PHP 8.x. Thanks for alerting me to this MLA defect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.x Update’ is closed to new replies.