Getting PHP 7 errors
-
I’ve got the latest Sunny update, which is supposed to be exclusively for PHP 7, yet I’m getting all the following errors when testing with the PHP Compatibility plugin. Will these be addressed soon?
FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Caches/Status/ShowController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
33 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Posts/Caches/DeleteController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
37 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Posts/RelatedUrls/IndexController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
36 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Targets/IndexController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
31 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/Decorators/Pages/TabbedPageInterface.php
———————————————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
———————————————————————————————————————————————
77 | ERROR | ‘self’ type cannot be used outside of class scope
- The topic ‘Getting PHP 7 errors’ is closed to new replies.