Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
$ext = new \ReflectionExtension($name);
try {
$prettyVersion = $ext->getVersion();
- $prettyVersion = $this->normalizeVersion($prettyVersion);
+ $prettyVersion = $this->normalizeVersion($prettyVersion ?? '0');
} catch (\UnexpectedValueException $e) {
$prettyVersion = '0';
$prettyVersion = $this->normalizeVersion($prettyVersion);
continue 2;
}
+ if ($prettyVersion === null) {
+ continue;
+ }
try {
$prettyVersion = $this->normalizeVersion($prettyVersion);
} catch (\UnexpectedValueException $e) {