diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 16:40:46 +0100 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-12-19 09:10:41 +0000 |
commit | 7996a12aef25b7ac8bd9a61f7b09f6806cef5ec4 (patch) | |
tree | 74a10efc50ae41b512b61f9d127b3456cacd17ba /lib/public/Log | |
parent | a529aa79d8136ec66db78f1b552940b7e374e12f (diff) | |
download | nextcloud-server-7996a12aef25b7ac8bd9a61f7b09f6806cef5ec4.tar.gz nextcloud-server-7996a12aef25b7ac8bd9a61f7b09f6806cef5ec4.zip |
Silence false-positive from psalm in lib/public/Log/functions.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/Log')
-rw-r--r-- | lib/public/Log/functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/Log/functions.php b/lib/public/Log/functions.php index cc6961d8fba..ac043b4d958 100644 --- a/lib/public/Log/functions.php +++ b/lib/public/Log/functions.php @@ -49,6 +49,7 @@ use function class_exists; * @since 24.0.0 */ function logger(string $appId = null): LoggerInterface { + /** @psalm-suppress TypeDoesNotContainNull false-positive, it may contain null if we are logging from initialization */ if (!class_exists(OC::class) || OC::$server === null) { // If someone calls this log before Nextcloud is initialized, there is // no logging available. In that case we return a noop implementation |