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:
Franz Liedke 2015-12-10 11:35:51 +01:00
parent d9d52dab3c
commit 32601d2c98

View File

@ -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;
}
/**