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>
This commit is contained in:
parent
709788e08f
commit
10b024642f
|
@ -240,7 +240,7 @@ class OC_Mount_Config {
|
||||||
* @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) {
|
||||||
|
@ -268,7 +268,7 @@ class OC_Mount_Config {
|
||||||
$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