Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Suppress false-positives from psalm, waiting for fix upstream
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Nov 7, 2022
commit 7af4fea0e3a41f160b83bd48ae16c31b651f9cf1
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