Title: Getting PHP 7 errors
Last modified: September 17, 2017

---

# Getting PHP 7 errors

 *  Resolved [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/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

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tang Rufus](https://wordpress.org/support/users/tangrufus/)
 * (@tangrufus)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/getting-php-7-errors/#post-9503421)
 * 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](https://travis-ci.org/TypistTech/sunny).
 * You should report this to that PHP compatibility plugin instead.
    -  This reply was modified 8 years, 6 months ago by [Tang Rufus](https://wordpress.org/support/users/tangrufus/).

Viewing 1 replies (of 1 total)

The topic ‘Getting PHP 7 errors’ is closed to new replies.

 * ![](https://ps.w.org/sunny/assets/icon-256x256.png?rev=1798938)
 * [Sunny](https://wordpress.org/plugins/sunny/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sunny/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sunny/)
 * [Active Topics](https://wordpress.org/support/plugin/sunny/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sunny/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sunny/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tang Rufus](https://wordpress.org/support/users/tangrufus/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/getting-php-7-errors/#post-9503421)
 * Status: resolved