From 5692e850be02ee66dc8e364f707780e0c216a443 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 8 Jul 2022 05:19:08 +0300 Subject: [PATCH] Fixing Torrent::$infoHashHexCache. --- src/Magnetico/Entity/Torrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnetico/Entity/Torrent.php b/src/Magnetico/Entity/Torrent.php index 46e7347..88dbb2a 100644 --- a/src/Magnetico/Entity/Torrent.php +++ b/src/Magnetico/Entity/Torrent.php @@ -25,7 +25,7 @@ class Torrent private $infoHash; /** Cached value of self::infoHash in HEX string */ - private string $infoHashHexCache; + private ?string $infoHashHexCache = null; #[Serializer\Groups(['api_v1_search', 'api_v1_show'])] #[ORM\Column(name: 'name', type: 'text', nullable: false)]