• Resolved HGregoire

    (@ylupienhgreg)


    Hi !

    Can you please fix the plugin to be compatible with PHP 7.

    Message: PHP Error #8192: Methods with the same name as their class will not be constructors in a future version of PHP; wsMenuEditorExtras has a deprecated constructor

    class ABC {
    public ABC() { } // Don’t use this
    public __construct() { } // Use this
    }

    Also don’t use reference in your ob_callback methods.

    function ob_callback(&$buffer); // Don’t use this.
    function ob_callback($buffer); // Use this.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 7 Compatibility’ is closed to new replies.