summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-03-16 22:06:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-03-16 22:06:07 +0100
commit0f2c4ff64c4603a7eda6ec5b8bf84e037ca42a5e (patch)
tree48a7723b454e25c5ee3947fb2fad5cf841121f46 /apps/files_external
parent5938da8d202daef92011f6d606c4bf613ff239b9 (diff)
downloadnextcloud-server-0f2c4ff64c4603a7eda6ec5b8bf84e037ca42a5e.tar.gz
nextcloud-server-0f2c4ff64c4603a7eda6ec5b8bf84e037ca42a5e.zip
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 <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external')
-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;
}