projects
/
GitHub
/
WoltLab
/
com.woltlab.wcf.conversation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
169f661
)
Fix "parameter type" warnings
author
Matthias Schmidt
<gravatronics@live.com>
Sat, 21 May 2016 16:36:12 +0000
(18:36 +0200)
committer
Matthias Schmidt
<gravatronics@live.com>
Sat, 21 May 2016 16:36:12 +0000
(18:36 +0200)
files/lib/data/conversation/message/ConversationMessageAction.class.php
patch
|
blob
|
blame
|
history
files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php
patch
|
blob
|
blame
|
history
diff --git
a/files/lib/data/conversation/message/ConversationMessageAction.class.php
b/files/lib/data/conversation/message/ConversationMessageAction.class.php
index 82d2f7ae49684a044d68105cefcee4691c05bb62..dc2d1be4d6f9e8d1be162a0bd833e9948cf69575 100644
(file)
--- a/
files/lib/data/conversation/message/ConversationMessageAction.class.php
+++ b/
files/lib/data/conversation/message/ConversationMessageAction.class.php
@@
-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]);
diff --git
a/files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php
b/files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php
index 2b5529901622195e051b02335f065c4a3515eee3..1b3c57ef9ddc440f2419d1ead538dd84f8b6f683 100644
(file)
--- a/
files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php
+++ b/
files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php
@@
-92,6
+92,7
@@
class ConversationMessageModerationQueueReportHandler extends AbstractModeration
* @inheritDoc
*/
public function getReportedContent(ViewableModerationQueue $queue) {
+ /** @noinspection PhpParamsInspection */
WCF::getTPL()->assign([
'message' => new ViewableConversationMessage($queue->getAffectedObject())
]);