[ticket/477] Expect version_helper to throw RuntimeException
B3P-477
This commit is contained in:
@@ -76,7 +76,15 @@ class version_check
|
|||||||
|
|
||||||
$this->version_helper->force_stability(($this->config['extension_force_unstable'] || !$this->version_helper->is_stable($this->current_version)) ? 'unstable' : null);
|
$this->version_helper->force_stability(($this->config['extension_force_unstable'] || !$this->version_helper->is_stable($this->current_version)) ? 'unstable' : null);
|
||||||
|
|
||||||
|
// Expect version_helper to throw RuntimeExceptions
|
||||||
|
try
|
||||||
|
{
|
||||||
$updates = $this->version_helper->get_suggested_updates(true);
|
$updates = $this->version_helper->get_suggested_updates(true);
|
||||||
|
}
|
||||||
|
catch (\RuntimeException $e)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Return version if $return_version is set to true
|
// Return version if $return_version is set to true
|
||||||
if ($return_version)
|
if ($return_version)
|
||||||
|
|||||||
Reference in New Issue
Block a user