PHP 7.x Deprecated constructor message
-
Activating the plugin in a site running PHP 7.x generated this message:
[20-Feb-2017 20:40:01 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Photonic has a deprecated constructor in …\wp-content\plugins\photonic\photonic.php on line 19
Changing line 19 from
function Photonic() {
tofunction __construct() {
eliminates the message.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP 7.x Deprecated constructor message’ is closed to new replies.