Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_antivirus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 19:06:58 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 19:06:58 +0300
commitd0bab6636c06944fdfa08064ab1a62f0f3867b02 (patch)
tree30f5b8e133ffec58af4933c038d1c94f755a4af8
parent17ba6be7ef0eb2310bf28131ef3a984b6b245c27 (diff)
Fix infectedStatus initialization
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/Scanner/ScannerBase.php2
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;