PHP7 Warnings in Widgets
-
Hi,
I am testing PHP7 for my site and noticed that I am getting some warnings for the widget classes:
HP message: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AlxTabs has a deprecated constructor in /path/wp-content/themes/hueman/functions/widgets/alx-tabs.php on line 14 PHP message: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AlxVideo has a deprecated constructor in /path/wp-content/themes/hueman/functions/widgets/alx-video.php on line 14 PHP message: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AlxPosts has a deprecated constructor in /path/wp-content/themes/hueman/functions/widgets/alx-posts.php on line 14" while reading response header from upstream, client: 127.0.0.1, server....
It seems like
AlxTabs()
,AlxVideo()
andAlxPosts()
need to be converted to use__construct()
.Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP7 Warnings in Widgets’ is closed to new replies.