Fixed Incorrect type hints in XF\Service\User\WelcomeMessage

DragonByte Tech

Well-known member
Affected version
2.1.1
PHP:
    /**
     * @var \XF\Entity\ConversationMessage
     */
    protected $sentMessage;

PHP:
    /**
     * @return null|\XF\Entity\ConversationMessage
     */
    public function getSentMessage()

These are actually \XF\Entity\ConversationMaster. That variable is set to the return value of \XF\Service\Conversation\Creator, which is an instance of \XF\Entity\ConversationMaster.
 
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.2).

Change log:
Fix incorrect type hints in welcome message service.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom