Skip to content

Commit

Permalink
Merge pull request #26164 from nextcloud/backport/26153/stable19
Browse files Browse the repository at this point in the history
[stable19] Use correct exception type hint in catch statement
  • Loading branch information
kesselb authored Mar 17, 2021
2 parents 709788e + 10b0246 commit 21b67e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_external/lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,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 @@ -268,7 +268,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 21b67e3

Please sign in to comment.