added PHPDoc to  function that handles deprecated filter