• It was encouraging to see an update of this plug-in, giving hope for further development. However, dissapointing for those using PHP 8, that no attention was paid to the information I posted 2 months ago giving fixes for the errors caused by the deprecated curly brackets issue. These fixes still need to be made in the updated version.

    PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php
    on lines 453, 459 and 739 as in the previous version, but also now in lines 780 and 874 in the updated version.
    Also
    PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php
    on lines 2028 and 2033 as in the previous version, but also in line 2079 in the updated version.
    After the above correction was made in line 2033, a new error appeared:
    PHP Parse error: syntax error, unexpected token ";" in wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2034.
    This is caused by a missing parenthesis near the end of line 2033, which may be corrected by adding a parenthesis in line 2033 as follows:
    if (strtoupper($string[$i] === $string[$i])) {

  • The topic ‘Deprecated PHP – Errors and Warnings’ is closed to new replies.