Non-static method DB:: Function () should not be called statically, assuming $this from incompatible context

non_static_function

I am getting this a lot after upgrading to PHP 5.6, fixing this is very simple, just trace the main original function and add public static before it.

Check below before and after example:

Before:

function isError($value)
{
return is_a($value, 'DB_Error');
}
// }}}
..............
.......

After:

 

public static function isError($value)
{
return is_a($value, 'DB_Error');
}
// }}}
..............
.......