Merge pull request #26153 from nextcloud/psalm/26111/fix-undefined-exception-class
Use correct exception type hint in catch statement
This commit is contained in:
commit
98fb265e9f
|
@ -193,7 +193,7 @@ class MountConfig {
|
||||||
* @param array $options backend configuration options
|
* @param array $options backend configuration options
|
||||||
* @param boolean $isPersonal
|
* @param boolean $isPersonal
|
||||||
* @return int see self::STATUS_*
|
* @return int see self::STATUS_*
|
||||||
* @throws Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function getBackendStatus($class, $options, $isPersonal, $testOnly = true) {
|
public static function getBackendStatus($class, $options, $isPersonal, $testOnly = true) {
|
||||||
if (self::$skipTest) {
|
if (self::$skipTest) {
|
||||||
|
@ -221,7 +221,7 @@ class MountConfig {
|
||||||
$storage->setAvailability(false);
|
$storage->setAvailability(false);
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
} catch (Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
\OC::$server->getLogger()->logException($exception, ['app' => 'files_external']);
|
\OC::$server->getLogger()->logException($exception, ['app' => 'files_external']);
|
||||||
throw $exception;
|
throw $exception;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue