The method getFilters() does not exist on Yiisoft\Data\Reader\FilterInterface. It seems like you code against a sub-type of Yiisoft\Data\Reader\FilterInterface such as Yiisoft\Data\Reader\Filter\Group.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
27
foreach ($filter->/** @scrutinizer ignore-call */ getFilters() as $subFilter) {