PHP 7 warnings
-
This plugin is throwing some warnings when used with PHP 7:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wassupOptions has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/wassup.class.php</b> on line 38 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Wassup_Widget has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/widgets/widgets.php</b> on line 51 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wassup_onlineWidget has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/widgets/widgets.php</b> on line 196 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wassup_topstatsWidget has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/widgets/widgets.php</b> on line 364 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wassup_pagination has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/main.php</b> on line 29 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wDetector has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/main.php</b> on line 179 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WassupItems has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/main.php</b> on line 1482 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UADetector has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/uadetector.class.php</b> on line 45
You should use the
__construct()
method instead of the PHP4-style constructors for classes:
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP 7 warnings’ is closed to new replies.