WA_AB_InsertParams has a deprecated constructor in webassist/database_management/wa_appbuilder_php.php on line 120
Bit by bit, I've managed to convert an old ASP project into a MySQLi version using a combination of the MySQLi Server Behaviours and a converted multiple records insert/update function from Data Bridge v1.
All was fine on my XAMPP test server, but live it's giving me the warning from the topic title as well as one other:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_AB_InsertParams has a deprecated constructor in /home/simonfra/public_html/mwcc/webassist/database_management/wa_appbuilder_php.php on line 120
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_AB_WhereClause has a deprecated constructor in /home/simonfra/public_html/mwcc/webassist/database_management/wa_appbuilder_php.php on line 167
I appreciate I can suppress this, but would prefer to future-proof my many hours of conversion work as much as possible. Any chance you could advise how I can amend the include file to correct the deprecated section and whether my multiple records update/insert actually use these classes?
Many thanks in advance,
Simon
*** Update***
I've changed line 124 from:
function WA_AB_InsertParams($WA_tableValues = "", $WA_dbValues = "", $WA_setValues = "") {
to:
function __construct($WA_tableValues = "", $WA_dbValues = "", $WA_setValues = "") {
It seems to have worked - is this the correct workaround?
Many thanks once again,
Simon