php 7.0 warnings
-
I’m upgrading php 5.6. to php 7.0 on the server. For some WP projects I’m having the following errors when I scan with php compatibility tool. How to fix ? WP version is latest, plugin version is 5.0.6.
FILE: /wp-content/plugins/xml-sitemap-feed/models/public/sitemap-news.php
————————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————
57 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————FILE: /wp-content/plugins/xml-sitemap-feed/models/public/shared.php
————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————-
117 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————-
- The topic ‘php 7.0 warnings’ is closed to new replies.