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

github.com/nextcloud/server.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-11-07 12:01:53 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-11-07 12:01:53 +0300
commit7af4fea0e3a41f160b83bd48ae16c31b651f9cf1 (patch)
tree2faf7d0832949157ede6ac15f6368a54095fb8ab
parent56f24cff9f1c2b7aed81886f93404b055bb90107 (diff)
Suppress false-positives from psalm, waiting for fix upstream
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/private/App/PlatformRepository.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/App/PlatformRepository.php b/lib/private/App/PlatformRepository.php
index 9d8d274c7fd..9b94c0b07bc 100644
--- a/lib/private/App/PlatformRepository.php
+++ b/lib/private/App/PlatformRepository.php
@@ -50,6 +50,10 @@ class PlatformRepository {
$ext = new \ReflectionExtension($name);
try {
$prettyVersion = $ext->getVersion();
+ /** @psalm-suppress TypeDoesNotContainNull
+ * @psalm-suppress RedundantCondition
+ * TODO Remove these annotations once psalm fixes the method signature ( https://github.com/vimeo/psalm/pull/8655 )
+ */
$prettyVersion = $this->normalizeVersion($prettyVersion ?? '0');
} catch (\UnexpectedValueException $e) {
$prettyVersion = '0';