Title: PHP4 class constructor is only a warning
Last modified: November 3, 2018

---

# PHP4 class constructor is only a warning

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php4-class-constructor-is-only-a-warning/)
 * Why is this a warning, and not an error? I was scanning for 7.1 compatibility.
 *     ```
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       -------------------------------------------------------------------------------------
        50 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       ```
   

The topic ‘PHP4 class constructor is only a warning’ is closed to new replies.

 * ![](https://ps.w.org/php-compatibility-checker/assets/icon-256x256.png?rev=1446087)
 * [PHP Compatibility Checker](https://wordpress.org/plugins/php-compatibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-compatibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-compatibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/php-compatibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-compatibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-compatibility-checker/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/php4-class-constructor-is-only-a-warning/)
 * Status: not resolved