Title: PHP.Generic.BadPattern.5
Last modified: December 7, 2017

---

# PHP.Generic.BadPattern.5

 *  Resolved [mbateam](https://wordpress.org/support/users/mbateam/)
 * (@mbateam)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-generic-badpattern-5-2/)
 * We are using Jetpack including security vault and a scan resulted in a security
   issue with code in this page.
    /wp-content/plugins/google-pagespeed-insights/
   lib/google-api-php-client/vendor/react/promise/src/React/Promise.php
 * 45 try {
    . 46 $progress($onProgress($update)); . 47 } catch (\Exception $e) {
 * let me know if this will be fixed or if it is a false positive
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-generic-badpattern-5-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-generic-badpattern-5-2/#post-9761257)
 * Hi mbateam,
 * Thanks for reporting. I have had false positives in the google API library before,
   this is almost certainly one of them.
 * I will check it out, and _hopefully_ the file in question isn’t required for 
   the API functions I am using and I can just remove it to avoid worrying anyone.
 * Thanks,
 * Matt Keys
 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-generic-badpattern-5-2/#post-9762182)
 * Just an FYI that I’ve taken a look at the file in question and I believe this
   to be a false positive. The code in question is harmless, and is as it was provided
   in the 2.2.0 release of this PHP API library from Google.
 * I’ve contacted the Jetpack team to see if there is anything that can be done 
   to prevent users from needlessly being warned about this file.
 * Thanks again for reporting.
 * Matt Keys
 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-generic-badpattern-5-2/#post-9764381)
 * I heard back from Jetpack support today:
 * “This is definitely a false positive. We’ll see about dismissing that notice 
   for all VaultPress users that use your plugin”

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

The topic ‘PHP.Generic.BadPattern.5’ is closed to new replies.

 * ![](https://ps.w.org/google-pagespeed-insights/assets/icon-256x256.png?rev=1692787)
 * [Insights from Google PageSpeed](https://wordpress.org/plugins/google-pagespeed-insights/)
 * [Support Threads](https://wordpress.org/support/plugin/google-pagespeed-insights/)
 * [Active Topics](https://wordpress.org/support/plugin/google-pagespeed-insights/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-pagespeed-insights/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/php-generic-badpattern-5-2/#post-9764381)
 * Status: resolved