mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Suppress false-positives from psalm, waiting for fix upstream
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
56f24cff9f
commit
7af4fea0e3
1 changed files with 4 additions and 0 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue