Deprecated constructor in includes/breeze.php
-
Recently I got this error message followed by a lot of warnings:
“Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Breeze has a deprecated constructor in /public_html/wp-content/plugins/wt-display-breeze/includes/breeze.php on line 3”Looking at line 3:
class Breeze {the class is the same name as the function on line 8:
function Breeze( $passed_api_key ) {By changing the name of the function, I was able to get the error and subsequent warnings to go away:
function fBreeze( $passed_api_key ) {I hope this helps some folks.
The topic ‘Deprecated constructor in includes/breeze.php’ is closed to new replies.