Skip to content

Commit

Permalink
correct markAsReadByParticipant and markAsUnreadByParticipant first a…
Browse files Browse the repository at this point in the history
…rgument that only accept thread because it use a method who only accept thread
  • Loading branch information
Florent Viel committed Dec 6, 2012
1 parent 5bcaf10 commit f42b283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EntityManager/MessageManager.php
Expand Up @@ -88,7 +88,7 @@ public function getNbUnreadMessageByParticipant(ParticipantInterface $participan
* @param ReadableInterface $readable
* @param ParticipantInterface $participant
*/
public function markAsReadByParticipant(ReadableInterface $readable, ParticipantInterface $participant)
public function markAsReadByParticipant(ThreadInterface $thread, ParticipantInterface $participant)
{
$this->markIsReadByThreadAndParticipant($readable, $participant, true);
}
Expand All @@ -99,7 +99,7 @@ public function markAsReadByParticipant(ReadableInterface $readable, Participant
* @param ReadableInterface $readable
* @param ParticipantInterface $participant
*/
public function markAsUnreadByParticipant(ReadableInterface $readable, ParticipantInterface $participant)
public function markAsUnreadByParticipant(ThreadInterface $thread, ParticipantInterface $participant)
{
$this->markIsReadByThreadAndParticipant($readable, $participant, false);
}
Expand Down

1 comment on commit f42b283

@mikeyudin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaration of FOS\MessageBundle\EntityManager\MessageManager::markAsReadByParticipant() must be compatible with that of FOS\MessageBundle\ModelManager\ReadableManagerInterface::markAsReadByParticipant()

Please sign in to comment.