Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Jan 25, 2024
1 parent 1b2da36 commit af6e879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ public function unpin($userId = null)
*
* If it's the last user, the whole message will be deleted.
*
* @param int $userId
* @param int|null $userId
* @throws \Throwable
* @throws \yii\db\StaleObjectException
*/
public function leave($userId)
public function leave($userId = null)
{
$userMessage = $this->getUserMessage($userId);
if (!$userMessage) {
Expand Down

0 comments on commit af6e879

Please sign in to comment.