Title: PHP 7 : Deprecated Methods
Last modified: August 30, 2016

---

# PHP 7 : Deprecated Methods

 *  Resolved [bigandy](https://wordpress.org/support/users/bigandy/)
 * (@bigandy)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-7-deprecated-methods/)
 * I’m using php7 rc2 (updated WordPress to latest nightly – 4.4-alpha-34096 – using
   the plugin so that works!) and I am getting the following error message:
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; wp_beta_tester has a deprecated constructor in <path-
   to-wordpress>/wp-content/plugins/wordpress-beta-tester/wp-beta-tester.php on 
   line 26
 * [https://wordpress.org/plugins/wordpress-beta-tester/](https://wordpress.org/plugins/wordpress-beta-tester/)

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

 *  [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-7-deprecated-methods/#post-6543136)
 * Same issue here. It’s tricky to test on the bleeding edge, when the plugin that
   helps you get to the bleeding edge uses deprecated methods!
 *  [jrobertblack](https://wordpress.org/support/users/jrobertblack/)
 * (@jrobertblack)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-deprecated-methods/#post-6543191)
 * I think you need to use __construct() , it solved the error for me and seems 
   to work ok now
 *  Change this on line 30 in the file wp-beta-tester.php
 * `function wp_beta_tester() {`
 * to this
 * `public function __construct() {`
 *  Plugin Author [Sergey Biryukov](https://wordpress.org/support/users/sergeybiryukov/)
 * (@sergeybiryukov)
 * WordPress Dev
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-7-deprecated-methods/#post-6543195)
 * The PHP7 deprecated constructor notice is fixed.

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

The topic ‘PHP 7 : Deprecated Methods’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-beta-tester/assets/icon-256x256.png?rev=2562317)
 * [WordPress Beta Tester](https://wordpress.org/plugins/wordpress-beta-tester/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-beta-tester/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-beta-tester/reviews/)

## Tags

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

 * 3 replies
 * 4 participants
 * Last reply from: [Sergey Biryukov](https://wordpress.org/support/users/sergeybiryukov/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/php-7-deprecated-methods/#post-6543195)
 * Status: resolved