$result of type Suilven\FreeTextSearch\Container\SuggesterResults is incompatible with the type array expected by parameter $array of array_slice().
(
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 $result returns the type Suilven\FreeTextSearch\Container\SuggesterResults which is incompatible with the documented return type string[].