• Resolved jamminjames

    (@jamminjames)


    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

Viewing 1 replies (of 1 total)
  • Plugin Author Tang Rufus

    (@tangrufus)

    I believe those are false alarms. You can verify that Sunny is working on PHP 7.0, 7.1 and (maybe) PHP nightly on TravisCI.

    You should report this to that PHP compatibility plugin instead.

    • This reply was modified 7 years, 2 months ago by Tang Rufus.
Viewing 1 replies (of 1 total)
  • The topic ‘Getting PHP 7 errors’ is closed to new replies.