diff --git a/.github/workflows/update-psalm-baseline.yml b/.github/workflows/update-psalm-baseline.yml index f2b761aa60246..181148a6c8b31 100644 --- a/.github/workflows/update-psalm-baseline.yml +++ b/.github/workflows/update-psalm-baseline.yml @@ -42,6 +42,8 @@ jobs: author: nextcloud-command signoff: true branch: automated/noid/psalm-baseline-update + # Make sure we can open multiple PRs + branch-suffix: timestamp title: '[Automated] Update psalm-baseline.xml' body: | Auto-generated update psalm-baseline.xml with fixed psalm warnings diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 156599e8b4179..bdcdeb5796a47 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -4261,11 +4261,6 @@ [] - - - $bp - - $maxPreviewImage @@ -4305,11 +4300,6 @@ $provider->getThumbnail($file, $maxWidth, $maxHeight) - - - $bp - - $second @@ -4332,11 +4322,6 @@ string - - - $svg - - \RedisCluster::OPT_SLAVE_FAILOVER @@ -4982,10 +4967,6 @@ $isWritable - - get_class($resource) === 'GdImage' - get_class($this->resource) === 'GdImage' - diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 113290e2686fb..f2d91065b9abc 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1082,7 +1082,7 @@ public function getMimeType($path) { * @param string $type * @param string $path * @param bool $raw - * @return bool|null|string + * @return bool|string */ public function hash($type, $path, $raw = false) { $postFix = (substr($path, -1) === '/') ? '/' : ''; @@ -1104,7 +1104,7 @@ public function hash($type, $path, $raw = false) { return $storage->hash($type, $internalPath, $raw); } } - return null; + return false; } /**