Fix "parameter type" warnings
authorMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 16:36:12 +0000 (18:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 16:36:12 +0000 (18:36 +0200)
files/lib/data/conversation/message/ConversationMessageAction.class.php
files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php

index 82d2f7ae49684a044d68105cefcee4691c05bb62..dc2d1be4d6f9e8d1be162a0bd833e9948cf69575 100644 (file)
@@ -475,6 +475,8 @@ class ConversationMessageAction extends AbstractDatabaseObjectAction implements
         * @inheritDoc
         */
        public function getMessageList(DatabaseObject $conversation, $lastMessageTime) {
+               /** @var Conversation $conversation */
+               
                $messageList = new ViewableConversationMessageList();
                $messageList->setConversation($conversation);
                $messageList->getConditionBuilder()->add("conversation_message.conversationID = ?", [$conversation->conversationID]);
index 2b5529901622195e051b02335f065c4a3515eee3..1b3c57ef9ddc440f2419d1ead538dd84f8b6f683 100644 (file)
@@ -92,6 +92,7 @@ class ConversationMessageModerationQueueReportHandler extends AbstractModeration
         * @inheritDoc
         */
        public function getReportedContent(ViewableModerationQueue $queue) {
+               /** @noinspection PhpParamsInspection */
                WCF::getTPL()->assign([
                        'message' => new ViewableConversationMessage($queue->getAffectedObject())
                ]);