diff --git a/src/Console/Storage.php b/src/Console/Storage.php index e2aa185c92..3377f33ddf 100644 --- a/src/Console/Storage.php +++ b/src/Console/Storage.php @@ -106,7 +106,7 @@ HELP; $this->out(sprintf($rowfmt, 'Sel', 'Name')); $this->out('-----------------------'); $isregisterd = false; - foreach ($this->storageManager->listBackends() as $name => $class) { + foreach ($this->storageManager->listBackends() as $name) { $issel = ' '; if ($current && $current::getName() == $name) { $issel = '*'; diff --git a/src/Core/StorageManager.php b/src/Core/StorageManager.php index 6e0e0796bd..985547b0f8 100644 --- a/src/Core/StorageManager.php +++ b/src/Core/StorageManager.php @@ -215,7 +215,7 @@ class StorageManager /** * Get registered backends * - * @return Storage\IWritableStorage[] + * @return string[] */ public function listBackends(): array { diff --git a/src/Module/Admin/Storage.php b/src/Module/Admin/Storage.php index 6aac6aace7..a2172503f5 100644 --- a/src/Module/Admin/Storage.php +++ b/src/Module/Admin/Storage.php @@ -96,7 +96,7 @@ class Storage extends BaseAdmin $current_storage_backend = DI::storage(); $available_storage_forms = []; - foreach (DI::storageManager()->listBackends() as $name => $class) { + foreach (DI::storageManager()->listBackends() as $name) { // build storage config form, $storage_form_prefix = preg_replace('|[^a-zA-Z0-9]|', '', $name);