Title: Xyz_Insert_Php_Widget has a deprecated constructor
Last modified: August 31, 2016

---

# Xyz_Insert_Php_Widget has a deprecated constructor

 *  [Promuta](https://wordpress.org/support/users/promuta/)
 * (@promuta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/xyz_insert_php_widget-has-a-deprecated-constructor/)
 * Hi,
 * I’m using your great plugin to add custom PHP code to WordPress.
    My webserver
   is running PHP 7 and in debug mode WordPress is showing me a error/warning for
   XYZ PHP code:
 * `Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Xyz_Insert_Php_Widget has a deprecated constructor
   in /wp-content/plugins/insert-php-code-snippet/widget.php on line 9`
 * It isn’t a fatal error, but maybe you can take care that this deprrecated PHP
   function is fixed?
 * Regards,
    Joey
 * [https://wordpress.org/plugins/insert-php-code-snippet/](https://wordpress.org/plugins/insert-php-code-snippet/)

The topic ‘Xyz_Insert_Php_Widget has a deprecated constructor’ is closed to new 
replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Promuta](https://wordpress.org/support/users/promuta/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/xyz_insert_php_widget-has-a-deprecated-constructor/)
 * Status: not resolved