• Resolved HighRollerUSA

    (@highrollerusa)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael

    (@mgyura)

    Thank you, HighRollerUSA for catching this error.

    By changing the name of the function you’ll stop the error message, but the API key wont be passed in the next pull. Your data will be returned as null because the API key will be blank.

    To fix this edit line 8:
    old:
    function Breeze( $passed_api_key ) {

    New:
    function __construct( $passed_api_key ) {

    I’ll make this change and push an update today.

    I appreciate your help catching this. Thank you!

    Thread Starter HighRollerUSA

    (@highrollerusa)

    Thanks, Michael!
    Obviously I know just enough to be dangerous. Thanks for fixing it “for real.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated constructor in includes/breeze.php’ is closed to new replies.