mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 18:27:47 +08:00
Don't return from inside a finally block
This is not supported in HHVM: https://github.com/facebook/hhvm/issues/5162 Reported on the forum: https://discuss.flarum.org/d/1390-migrating-from-php-5-6-x-to-php-7-0-x/7
This commit is contained in:
parent
d9d52dab3c
commit
32601d2c98
|
@ -117,8 +117,10 @@ class Application extends Container implements ApplicationContract
|
|||
try {
|
||||
$version = $settings->get('version');
|
||||
} finally {
|
||||
return isset($version) && $version === $this->version();
|
||||
$isUpToDate = isset($version) && $version === $this->version();
|
||||
}
|
||||
|
||||
return $isUpToDate;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user