Error while parsing PHP: Only variables should be passed by reference

Error while parsing PHP: call_user_func_array() expects parameter 1 to be a valid callback, non-static method HeadwayNavigationBlock::home_link_filter() should not be called statically