From 10b024642fc4c1c85daeb81df0f1683492a7a456 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 16 Mar 2021 22:06:00 +0100 Subject: [PATCH] Use correct exception type hint in catch statement Found by psalm update 4.6.2 to 4.6.3 in #26111 Signed-off-by: Morris Jobke --- apps/files_external/lib/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 745f2da6d5..2fd0ac8c88 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -240,7 +240,7 @@ class OC_Mount_Config { * @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) { @@ -268,7 +268,7 @@ class OC_Mount_Config { $storage->setAvailability(false); throw $e; } - } catch (Exception $exception) { + } catch (\Exception $exception) { \OC::$server->getLogger()->logException($exception, ['app' => 'files_external']); throw $exception; }