summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-03-17 09:41:47 +0100
committerGitHub <noreply@github.com>2021-03-17 09:41:47 +0100
commit98fb265e9f889f4a6fb5473879cfb54cba777c5b (patch)
tree8ca7f668149bc3287ca8a56f141cf7649c0b7823 /apps
parent096806087cf53bca05b55edceef3a1073092952b (diff)
parent0f2c4ff64c4603a7eda6ec5b8bf84e037ca42a5e (diff)
downloadnextcloud-server-98fb265e9f889f4a6fb5473879cfb54cba777c5b.tar.gz
nextcloud-server-98fb265e9f889f4a6fb5473879cfb54cba777c5b.zip
Merge pull request #26153 from nextcloud/psalm/26111/fix-undefined-exception-class
Use correct exception type hint in catch statement
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/MountConfig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/MountConfig.php b/apps/files_external/lib/MountConfig.php
index 30b45ccf0cc..8b63f1b1f4b 100644
--- a/apps/files_external/lib/MountConfig.php
+++ b/apps/files_external/lib/MountConfig.php
@@ -193,7 +193,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) {
@@ -221,7 +221,7 @@ class MountConfig {
$storage->setAvailability(false);
throw $e;
}
- } catch (Exception $exception) {
+ } catch (\Exception $exception) {
\OC::$server->getLogger()->logException($exception, ['app' => 'files_external']);
throw $exception;
}