From 19e314bd54a02ad360da6aa7d417b6a3f543c051 Mon Sep 17 00:00:00 2001 From: tuutti Date: Fri, 8 Sep 2023 10:37:42 +0300 Subject: [PATCH] UHF-8525: Fixed argument name --- src/Commands/ApiAccountCommands.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/ApiAccountCommands.php b/src/Commands/ApiAccountCommands.php index 738c192b..09dafd5c 100644 --- a/src/Commands/ApiAccountCommands.php +++ b/src/Commands/ApiAccountCommands.php @@ -61,7 +61,7 @@ public function reveal(string $value) : int { #[Option(name: 'plugin', description: 'The plugin')] #[Option(name: 'data', description: 'The data.')] public function update(array $options = [ - 'value' => NULL, + 'file' => NULL, 'type' => NULL, 'id' => NULL, 'plugin' => NULL, @@ -69,8 +69,8 @@ public function update(array $options = [ ]) : int { $type = $this->askType($options['type']); - if ($options['filename']) { - $value = file_get_contents($options['filename']); + if ($options['file']) { + $value = file_get_contents($options['file']); } else { $value = $this->io()->ask('The base64 and JSON encoded secret value');