Title: Deprecated constructor in PHP code (still working though)
Last modified: October 25, 2017

---

# Deprecated constructor in PHP code (still working though)

 *  [w-sky](https://wordpress.org/support/users/w-sky/)
 * (@w-sky)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/deprecated-constructor-in-php-code-still-working-though/)
 * Using PHP 7.0 or 7.1, I’m getting this warning in WordPress debug mode:
 * `Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Featured_Category_Widget has a deprecated constructor
   in /usr/www/wp-content/plugins/category-feature/class-lib/CF_WidgetClass.php 
   on line 12`

Viewing 1 replies (of 1 total)

 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/deprecated-constructor-in-php-code-still-working-though/#post-9619809)
 * Thanks for making me alert. I thought, I’d have those old constructors eliminated
   in all my plugins. Obviously not. 🙂
 * Thanks a lot and all the best.

Viewing 1 replies (of 1 total)

The topic ‘Deprecated constructor in PHP code (still working though)’ is closed 
to new replies.

 * ![](https://ps.w.org/category-feature/assets/icon-128x128.png?rev=1034300)
 * [Featured Category Widget](https://wordpress.org/plugins/category-feature/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-feature/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-feature/)
 * [Active Topics](https://wordpress.org/support/plugin/category-feature/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-feature/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-feature/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/deprecated-constructor-in-php-code-still-working-though/#post-9619809)
 * Status: not resolved