Title: php 7
Last modified: January 14, 2017

---

# php 7

 *  Resolved [Antonio D.](https://wordpress.org/support/users/colomet/)
 * (@colomet)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-30/)
 * FILE: /–/–/–/–.com/httpdocs/wp-content/plugins/bp-profile-search/bps-xprofile.
   php
    ————————————————————————————————————————- FOUND 1 ERROR AFFECTING 1 LINE————————————————————————————————————————-
   308 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid 
   and will throw a fatal error since PHP 7.0 ————————————————————————————————————————-

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

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-30/#post-8655037)
 * Hi [@colomet](https://wordpress.org/support/users/colomet/),
 * Thanks for your report, but I’m afraid that’s a false positive, probably triggered
   by the lack of a few optional curly braces.
 * If that’s the problem, I could add the missing braces to pass the test. By the
   way, which tool are you using?
 * Thank you!
 *  Thread Starter [Antonio D.](https://wordpress.org/support/users/colomet/)
 * (@colomet)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-30/#post-8655068)
 * [https://es.wordpress.org/plugins/php-compatibility-checker/](https://es.wordpress.org/plugins/php-compatibility-checker/)
 *  [Nate Richards](https://wordpress.org/support/users/energyfw/)
 * (@energyfw)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-7-30/#post-8853528)
 * I am having the same issue – would love to see this resolved, thanks!
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-7-30/#post-8860939)
 * Hello Nate and Colomet,
 * Sorry I forgot to follow up on this topic.
 * I checked the code in BP Profile Search and the code is correct. I could tweak
   the code to please the tool, but probably that’s not the best approach. I suggest
   you report this issue to the tool maintainers, so they can fix the tool instead.
    -  This reply was modified 9 years, 2 months ago by [Andrea Tarantini](https://wordpress.org/support/users/dontdream/).

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

The topic ‘php 7’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php-7-30/#post-8860939)
 * Status: resolved