Fix usage

This commit is contained in:
Philipp 2021-08-16 00:10:37 +02:00
parent 1901716479
commit 99239e3d99
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
3 changed files with 3 additions and 3 deletions

View file

@ -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 = '*';

View file

@ -215,7 +215,7 @@ class StorageManager
/**
* Get registered backends
*
* @return Storage\IWritableStorage[]
* @return string[]
*/
public function listBackends(): array
{

View file

@ -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);