Merge pull request #26163 from nextcloud/backport/26153/stable20

[stable20] Use correct exception type hint in catch statement
This commit is contained in:
Morris Jobke 2021-03-17 13:50:13 +01:00 committed by GitHub
commit fd53468d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ class MountConfig {
* @param array $options backend configuration options
* @param boolean $isPersonal
* @return int see self::STATUS_*
* @throws Exception
* @throws \Exception
*/
public static function getBackendStatus($class, $options, $isPersonal, $testOnly = true) {
if (self::$skipTest) {
@ -270,7 +270,7 @@ class MountConfig {
$storage->setAvailability(false);
throw $e;
}
} catch (Exception $exception) {
} catch (\Exception $exception) {
\OC::$server->getLogger()->logException($exception, ['app' => 'files_external']);
throw $exception;
}