Has anyone seen these warnings in admincp?
Warning: Declaration of vB_Database_Alter_MySQL::add_index() should be compatible with that of vB_Database_Alter::add_index() in ..../includes/class_dbalter.php on line 882
Warning: Declaration of vB_Database_Alter_MySQL::add_field() should be compatible with that of vB_Database_Alter::add_field() in ..../includes/class_dbalter.php on line 882
Warning: Declaration of vB_Database_Alter_MySQL::drop_field() should be compatible with that of vB_Database_Alter::drop_field() in ..../includes/class_dbalter.php on line 882
Warning: Declaration of vB_Database_Alter_MySQL::query() should be compatible with that of vB_Database_Alter::query() in ..../includes/class_dbalter.php on line 882
I searched for the generic warning language and at stackoverflow various posters said when one class extends another the methods' arguments must match exactly, including defaults. So for example on line 242 we have
Code:
function add_index($fieldname, $fields, $type, $overwrite) {}
and on line 518
Code:
function add_index($fieldname, $fields, $type = '', $overwrite = false)
{
$this->init_table_info();
. . . . . . . . . .
It looks like all you'd have to do is edit in the defaults in the first method, and likewise for the other incompatibilities in the warnings.
But I would want to test this before recommending it here, after all, this stuff alters database structure. So when do these warnings happen?