diff --git a/phpBB/language/en/acp/extensions.php b/phpBB/language/en/acp/extensions.php index 280a483d89..6f6add6a86 100644 --- a/phpBB/language/en/acp/extensions.php +++ b/phpBB/language/en/acp/extensions.php @@ -164,7 +164,7 @@ $lang = array_merge($lang, array( 'EXTENSIONS_REMOVED' => 'Extensions successfully removed.', 'EXTENSIONS_UPDATED' => 'Extensions successfully updated.', - 'EXTENSIONS_COMPOSER_NOT_WRITABLE' => 'In order to use the catalog, the following files and directories must be writable: ext/ vendor-ext/ composer-ext.json and composer-ext.json.lock', + 'EXTENSIONS_COMPOSER_NOT_WRITABLE' => 'In order to use the catalog, the following files and directories must be writable: ext/ vendor-ext/ composer-ext.json and composer-ext.lock', 'STABILITY_STABLE' => 'stable', 'STABILITY_RC' => 'RC', diff --git a/phpBB/phpbb/composer/installer.php b/phpBB/phpbb/composer/installer.php index 74b874a507..e684882bfa 100644 --- a/phpBB/phpbb/composer/installer.php +++ b/phpBB/phpbb/composer/installer.php @@ -455,23 +455,30 @@ class installer /** @var \Composer\Package\PackageInterface $version */ foreach ($versions as $version) { - if (BasePackage::$stabilities[$version->getStability()] > $core_stability_value) + try { - continue; - } - - if (array_key_exists('phpbb/phpbb', $version->getRequires())) - { - /** @var ConstraintInterface $package_constraint */ - $package_constraint = $version->getRequires()['phpbb/phpbb']->getConstraint(); - - if (!$package_constraint->matches($core_constraint)) + if (BasePackage::$stabilities[$version->getStability()] > $core_stability_value) { continue; } - } - $compatible_packages[$package_name][] = $version; + if (array_key_exists('phpbb/phpbb', $version->getRequires())) + { + /** @var ConstraintInterface $package_constraint */ + $package_constraint = $version->getRequires()['phpbb/phpbb']->getConstraint(); + + if (!$package_constraint->matches($core_constraint)) + { + continue; + } + } + + $compatible_packages[$package_name][] = $version; + } + catch (\Exception $e) + { + // Do nothing (to log when a true debug logger is available) + } } return $compatible_packages;