Title: PHP7
Last modified: November 30, 2016

---

# PHP7

 *  Resolved [10bradders10](https://wordpress.org/support/users/10bradders10/)
 * (@10bradders10)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-22/)
 * Hi,
 * Is your plugin compatible with PHP7 please?
 * I’ve ran a check before, and it produced these errors.
 * >  FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/ResourceIteratorFactoryInterface.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/Model.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/ResourceIteratorInterface.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/MapResourceIteratorFactory.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/ResourceIterator.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/AbstractResourceIteratorFactory.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/ResourceIteratorClassFactory.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
   > FILE: /home/cosmikca/public_html/wp-content/plugins/cloudflare/vendor/guzzle/
   > guzzle/src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php
   >  ——————————————————————————————————————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   > 3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   > be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Paul Hugel](https://wordpress.org/support/users/paul-hugel/)
 * (@paul-hugel)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-22/#post-8527093)
 * Please can you run a comprehensive php7 compatibility check for the cloudflare
   wordpress plugin
 * I also have run check and result using
 * [https://wordpress.org/plugins-wp/php-compatibility-checker/](https://wordpress.org/plugins-wp/php-compatibility-checker/)
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/Model.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/AbstractResourceIteratorFactory.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/ResourceIteratorClassFactory.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/ResourceIteratorInterface.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 * FILE: /nas/content/live/nko/wp-content/plugins/cloudflare/vendor/guzzle/guzzle/
   src/Guzzle/Service/Resource/ResourceIterator.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————————————————————————-
   3 | ERROR | ‘resource’ is a reserved keyword as of PHP version 7.0 and cannot
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)——————————————————————————————————————————————————————-
 *  [icyapril](https://wordpress.org/support/users/icyapril/)
 * (@icyapril)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-22/#post-8557361)
 * Hi;
 * We currently don’t use the classes you mentioned (so there is no effect), however
   we are looking to move away from Guzzle longer term.
 * To clarify, you can safely use PHP 7.0 with this plugin.
 * Thanks
 *  Thread Starter [10bradders10](https://wordpress.org/support/users/10bradders10/)
 * (@10bradders10)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-22/#post-8557389)
 * Thank you! 🙂
 *  [thellimist](https://wordpress.org/support/users/furkan811/)
 * (@furkan811)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php7-22/#post-8863029)
 * WordPress Cloudflare Plugin 3.2.0 is live fixing the issue. Could you give it
   a try.
 * You can see the changelog
 * [https://en-gb.wordpress.org/plugins/cloudflare/changelog/](https://en-gb.wordpress.org/plugins/cloudflare/changelog/)
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP7’ is closed to new replies.

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

 * 4 replies
 * 4 participants
 * Last reply from: [thellimist](https://wordpress.org/support/users/furkan811/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/php7-22/#post-8863029)
 * Status: resolved