Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
MorrisJobke committed Mar 16, 2021
commit 0f2c4ff64c4603a7eda6ec5b8bf84e037ca42a5e
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