It seems like $dialogs->findUserByFull...indChatByTitle($search) can also be of type null; however, parameter $entity of Zored\Telegram\Entity\Co...ctory::createByEntity() does only seem to accept Zored\Telegram\Entity\General\AbstractEntity, 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