It seems like $listField->getOption(Po..._VIEW_OPTIONS, array()) can also be of type Doctrine\Common\Collections\T and null; however, parameter $options of Povs\ListerBundle\View\FieldView::initOptions() does only seem to accept array, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return $this->listField-...Field::OPTION_SORTABLE) returns the type Doctrine\Common\Collections\T|null which is incompatible with the type-hinted return boolean.