Please fix AsaWidget.php for PHP v7

  • November 29, 2016 um 04:01 Uhr #14094
    iazardo
    Mitglied

    Hello, nice plugin!

    We are running PHP v7 and get a deprecation note for AsaWidget.php line 7 (v1.0.1 of amazonsimpleadmin):

    > Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_AmazonSimpleAdmin has a deprecated constructor in /srv/www/thegeekgift.com/current/web/app/plugins/amazonsimpleadmin/AsaWidget.php on line 7

    This of course is easily fixed by chaniging the PHP 4 style constructor in line 31:

    > function WP_Widget_AmazonSimpleAdmin()

    to

    > function __construct()

    Is it possible to release a new version with this fixed or will this cause problems with backwards compatibility somehow? Thank you!

    November 29, 2016 um 22:02 Uhr #14095
    Timo
    Administrator

    Sure, I will release an update for ASA 1 including a fix for this soon!

    November 30, 2016 um 02:57 Uhr #14096
    iazardo
    Mitglied

    Thank you for your quick response Timo!
    Sounds great! 🙂 🙂

    März 8, 2017 um 18:46 Uhr #14146
    Timo
    Administrator

    Please check if the new ASA1 update (version 1.1.1) works with your PHP 7 installation. It does with mine. 😉

    https://wordpress.org/plugins/amazonsimpleadmin/

Du musst angemeldet sein, um auf dieses Thema antworten zu können.

Topic Tags