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(
int $id
): \Rhilip\Bencode\TorrentFile
): ?\Rhilip\Bencode\TorrentFile
{
return $this->readTorrentFileByFilepath(
$this->getStorageFilepathById($id)