From 9335b01ad64e69bd66bfff8fbd3b940ba9027c57 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 8 Oct 2023 04:27:42 +0300 Subject: [PATCH] fix returned data type --- src/Service/TorrentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index 9a6762f..5bac3e4 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -49,7 +49,7 @@ class TorrentService public function readTorrentFileByTorrentId( int $id - ): \Rhilip\Bencode\TorrentFile + ): ?\Rhilip\Bencode\TorrentFile { return $this->readTorrentFileByFilepath( $this->getStorageFilepathById($id)