Skip to content

Commit cd2c59d

Browse files
committed
fix typo of function getInfoHashsForAnnounce
1 parent 825b4f3 commit cd2c59d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ $torrent->getInfoHash(?$binary); // return v2-infohash if there is one, otherw
144144
$torrent->getInfoHashs(?$binary); // return [TorrentFile::PROTOCOL_V1 => v1-infohash, TorrentFile::PROTOCOL_V2 => v2-infohash]
145145
$torrent->getInfoHashV1ForAnnounce(); // return the v1 info-hash in announce ( 20-bytes string )
146146
$torrent->getInfoHashV2ForAnnounce(); // return the v2 (truncated) info-hash in announce
147-
$torrent->getInfoHashsForAnnnounce(); // same as getInfoHashs() but in announce
147+
$torrent->getInfoHashsForAnnounce(); // same as getInfoHashs() but in announce
148148

149149
$torrent->getPieceLength(); // int
150150

src/TorrentFile.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public function getInfoHashV2ForAnnounce()
422422
/**
423423
* The 20-bytes truncated infohash
424424
*/
425-
public function getInfoHashsForAnnnounce()
425+
public function getInfoHashsForAnnounce()
426426
{
427427
return [
428428
self::PROTOCOL_V1 => $this->getInfoHashV1ForAnnounce(),
@@ -473,14 +473,6 @@ public function setSource($source)
473473
return $this->setInfoField('source', $source);
474474
}
475475

476-
/**
477-
* @deprecated typo of function `setSource`
478-
*/
479-
public function setSouce($source)
480-
{
481-
return $this->setSource($source);
482-
}
483-
484476
public function isPrivate()
485477
{
486478
return $this->getInfoField('private') === 1;

0 commit comments

Comments
 (0)