From 239aa1b923bf115425ba372ac23c468e2160abac Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Thu, 8 Oct 2026 13:03:57 +0200 Subject: [PATCH] StorageBackend: drop a redundant cast --- lib/Backend/StorageBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Backend/StorageBackend.php b/lib/Backend/StorageBackend.php index ae279e2..8f0d82c 100644 --- a/lib/Backend/StorageBackend.php +++ b/lib/Backend/StorageBackend.php @@ -113,7 +113,7 @@ final class StorageBackend implements IBackend { /** Whether the storage accepts the connection settings (files_external's own check). */ public function canConnect(): bool { try { - return !method_exists($this->storage, 'test') || (bool)$this->storage->test(); + return !method_exists($this->storage, 'test') || $this->storage->test(); } catch (\Throwable) { return false; }