Title: Deprecated Method call (PHP 7)
Last modified: May 24, 2017

---

# Deprecated Method call (PHP 7)

 *  Resolved [wunch](https://wordpress.org/support/users/wunch/)
 * (@wunch)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/deprecated-method-call-php-7/)
 * Running v1.2.5 of your plugin on WordPress 4.7.5 under PHP 7 with debugging on
   results in a deprecated method warning:
 * > PHP Deprecated: Non-static method ConstantContact_Notification_Content::reCAPTCHA()
   > should not be called statically in /var/www/wordpress/web/app/plugins/constant-
   > contact-forms/includes/class-notifications.php on line 159
 * This is the second deprecated item on the PHP 7 list: [http://php.net/manual/en/migration70.deprecated.php](http://php.net/manual/en/migration70.deprecated.php)
 * Judging by the other methods in that class (all static), and the fact that this
   method is only called once in your code, it seems a safe fix is to just make 
   ConstantContact_Notification_Content::reCAPTCHA() a static method. I gave it 
   a try and that seemed to work on my install.

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [8 years, 11 months ago](https://wordpress.org/support/topic/deprecated-method-call-php-7/#post-9164165)
 * Hi [@wunch](https://wordpress.org/support/users/wunch/). This is something we
   noticed as well in our own development, and it will be addressed in the next 
   release of the plugin.
 * Thank you for providing the feedback, nonetheless. We appreciate it.
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/deprecated-method-call-php-7/#post-9164283)
 * Marking resolved as it’s a known issue that has been addressed.
 * Thanks again.

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

The topic ‘Deprecated Method call (PHP 7)’ is closed to new replies.

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

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/deprecated-method-call-php-7/#post-9164283)
 * Status: resolved