From f38e57276ebe2c1aea0dbddf891853e52ccee490 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 26 Mar 2024 12:01:15 -0300 Subject: [PATCH] Prevent warning Typed property OCA\\Libresign\\Service\\IdentifyMethod\\AbstractIdentifyMethod::$availableSignatureMethods must not be accessed before initialization" Signed-off-by: Vitor Mattos --- lib/Service/IdentifyMethod/AbstractIdentifyMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php index b9219d87b2..01e75dd001 100644 --- a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php +++ b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php @@ -46,7 +46,7 @@ abstract class AbstractIdentifyMethod implements IIdentifyMethod { /** * @var string[] */ - public array $availableSignatureMethods; + public array $availableSignatureMethods = []; /** * @var AbstractSignatureMethod[] */