fix returned data type

This commit is contained in:
ghost 2023-10-08 04:27:42 +03:00
parent f919a7ed85
commit 9335b01ad6

View file

@ -49,7 +49,7 @@ class TorrentService
public function readTorrentFileByTorrentId( public function readTorrentFileByTorrentId(
int $id int $id
): \Rhilip\Bencode\TorrentFile ): ?\Rhilip\Bencode\TorrentFile
{ {
return $this->readTorrentFileByFilepath( return $this->readTorrentFileByFilepath(
$this->getStorageFilepathById($id) $this->getStorageFilepathById($id)