diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-09-29 19:06:58 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-09-29 19:06:58 +0300 |
commit | d0bab6636c06944fdfa08064ab1a62f0f3867b02 (patch) | |
tree | 30f5b8e133ffec58af4933c038d1c94f755a4af8 | |
parent | 17ba6be7ef0eb2310bf28131ef3a984b6b245c27 (diff) |
Fix infectedStatus initialization
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/Scanner/ScannerBase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Scanner/ScannerBase.php b/lib/Scanner/ScannerBase.php index 455643a..2324c2b 100644 --- a/lib/Scanner/ScannerBase.php +++ b/lib/Scanner/ScannerBase.php @@ -40,7 +40,7 @@ abstract class ScannerBase implements IScanner { * If scanning was done part by part * the first detected infected part is stored here */ - protected Status $infectedStatus; + protected ?Status $infectedStatus = null; protected int $byteCount; |