PHP warning with E_STRICT on
-
I’m getting the following error with E_STRICT errors on in PHP at wp-admin/
Warning: Declaration of Daily_Tips_Table::prepare_items($group_name, $from_date, $to_date) should be compatible with WP_List_Table::prepare_items() in /var/www/html/wp-content/plugins/st-daily-tip/st-daily-tip-admin.php on line 121
I was able to fix this by doing the following:
public function prepare_items()
{
list($group_name,$from_date,$to_date) = func_get_args();
...
}
I’m not sure if that is how you would want to fix this warning, but I’d appreciate it a lot if the next release did fix this warning. Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP warning with E_STRICT on’ is closed to new replies.