@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Sends subscription removal request presence to server. |
| 57 | 57 | * |
| 58 | - * @param Jid|string $jid |
|
| 58 | + * @param Jid $jid |
|
| 59 | 59 | * @return \React\Promise\ExtendedPromiseInterface |
| 60 | 60 | */ |
| 61 | 61 | public function unsubscribe(Jid $jid) |
@@ -74,6 +74,9 @@ discard block |
||
| 74 | 74 | return $this->_client->send($this->presence('unsubscribed', $jid)); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $type |
|
| 79 | + */ |
|
| 77 | 80 | private function presence($type, $jid) |
| 78 | 81 | { |
| 79 | 82 | $jid = $jid instanceof Jid ? $jid : new Jid($jid); |