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

---

# PHP 7.0 Deprecated Methods

 *  Resolved [bigandy](https://wordpress.org/support/users/bigandy/)
 * (@bigandy)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/)
 * I have updated to Updated to PHP7 RC2:
 * Getting these warnings:
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Debug_Bar has a deprecated constructor in <path-to-
   wp>/wp-content/plugins/debug-bar/debug-bar.php on line 20
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Debug_Bar_Panel has a deprecated constructor in <
   path-to-wp>/wp-content/plugins/debug-bar/panels/class-debug-bar-panel.php on 
   line 3
 * [https://wordpress.org/plugins/debug-bar/](https://wordpress.org/plugins/debug-bar/)

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

 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/#post-6543187)
 * I’m seeing these as well.
 *  [Adam Silverstein](https://wordpress.org/support/users/adamsilverstein/)
 * (@adamsilverstein)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/#post-6543188)
 * Not sure where to make a PR: this patch fixes the warnings – [https://cloudup.com/cEnnB0y-0NW](https://cloudup.com/cEnnB0y-0NW)
 *  [hazephase](https://wordpress.org/support/users/hazephase/)
 * (@hazephase)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/#post-6543190)
 * Where do I add the patch?
 *  [ksere](https://wordpress.org/support/users/ksere/)
 * (@ksere)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/#post-6543194)
 * You can apply the changes manually until the plugin author issues an update.
   
   You just have to change:
 * `function Debug_Bar() {`
    to `function __construct() {` in debug-bar.php line:
   23
 * and
 * `function Debug_Bar_Panel( $title='' ) {`
    to `function __construct( $title=''){`
   in panels/class-debug-bar-panel.php line:7
 * [@adam](https://wordpress.org/support/users/adam/) thanks for the patch.
 *  Plugin Contributor [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/#post-9254202)
 * This was fixed in the 0.8.3 release.

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

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

 * ![](https://ps.w.org/debug-bar/assets/icon.svg?rev=3050748)
 * [Debug Bar](https://wordpress.org/plugins/debug-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-bar/reviews/)

## Tags

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

 * 5 replies
 * 6 participants
 * Last reply from: [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/php-70-deprecated-methods/#post-9254202)
 * Status: resolved