Skip to content

Commit

Permalink
Suppress false-positives from psalm, waiting for fix upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Nov 7, 2022
1 parent 56f24cf commit 7af4fea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/App/PlatformRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ protected function initialize(): array {
$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';
Expand Down

0 comments on commit 7af4fea

Please sign in to comment.