Skip to content

Commit

Permalink
Merge pull request #26162 from nextcloud/backport/26153/stable21
Browse files Browse the repository at this point in the history
[stable21] Use correct exception type hint in catch statement
  • Loading branch information
kesselb authored Mar 17, 2021
2 parents 215967d + 162e763 commit 5ecbfa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_external/lib/MountConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ecbfa4

Please sign in to comment.