I use WP Matomo Integration 1.0.26 and PHP Compatibility Checker 1.5.2
The site runs on PHP 7.3. Wordpress 5.8.1
After scanning the site I get the following critical errors:
Before you say please first upgrade to PHP 7.4. I read this tutorial: https://wordpress.org/support/update-php/ which indicates that before upgrading PHP one should fix all compatibility issues found by PHP Compatibility Checker
Hi,
Could it be that the tool is giving a false alert, as unless I am missing something obvious here, the break is inside a loop.
But guessing by the fact that a lot of people (including me) are running the plugin on PHP 7 without issues for a long time now, I guess it isn’t an important issue that should stop you from upgrading.
PHP Compatibility Check (Juliet) answered: The foreach
is missing curly braces, which is the cause for the false positive. In case you want to get more details about the false positive in PHP Compatibility Checker https://github.com/wpengine/phpcompat/issues/297
1 Like