From 162e763e2642a3de66b62b1327326dc3460f7b3b 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/MountConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/MountConfig.php b/apps/files_external/lib/MountConfig.php index 30b45ccf0ccfc..8b63f1b1f4bcb 100644 --- a/apps/files_external/lib/MountConfig.php +++ b/apps/files_external/lib/MountConfig.php @@ -193,7 +193,7 @@ public static function substitutePlaceholdersInConfig($input, string $userId = n * @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) { @@ -221,7 +221,7 @@ public static function getBackendStatus($class, $options, $isPersonal, $testOnly $storage->setAvailability(false); throw $e; } - } catch (Exception $exception) { + } catch (\Exception $exception) { \OC::$server->getLogger()->logException($exception, ['app' => 'files_external']); throw $exception; }