Support » Plugin: All In One Favicon » Can you please change your constructor syntax for PHP compliance

  • Resolved dun_edwards

    (@dun_edwards)


    Hello Arne, if you change 4 bits of constructor syntax you will avoid 4 deprecation messages that come up when using your plugin in PHP7. This was tested on PHP 7.1.1.

    Cheers!

    Duncan

    File:
    includes\aio-favicon-backend.php line 33
    change to:
    function __construct($aioFaviconSettings, $aioFaviconDefaultSettings, $donationLoader,

    File:
    includes\aio-favicon-frontend.php line 27
    change to:
    function __construct($aioFaviconSettings) {

    File:
    includes\donationloader.php line 27
    change to:
    function __construct() {

    File:
    includes\favicon-render-helper.php line 26
    change to:
    function __construct($aioFaviconSettings, $aioFaviconType) {

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can you please change your constructor syntax for PHP compliance’ is closed to new replies.