Updating filter method to not type hint (PHP version difference breaks it?)