getAutoCompleteResults: array_merge(): Argument #2 must be of type array, null given

getAutoCompleteResults isn't checking the return result of getAutoCompleteResult

getAutoCompleteResult has the type signature public function getAutoCompleteResult(Entity $entity,array $options = []): ?array;

But it is used as:
PHP:

Код:
    return array_filter(array_merge(
        [
            'id' => $result->getEntityContentTypeId(),
            'type' => \XF::app()->getContentTypePhrase($type),
        ],
        $handler->getAutoCompleteResult($result, $options)...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ