From fe6c2c39a3e3812bfc9c1118e8f42cd779ba5fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20H=C3=A9lias?= Date: Thu, 16 Nov 2023 15:17:10 +0100 Subject: [PATCH] Fix option blind --- src/Command/EncryptionDataCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/EncryptionDataCommand.php b/src/Command/EncryptionDataCommand.php index 6fc6c62..eed9efe 100644 --- a/src/Command/EncryptionDataCommand.php +++ b/src/Command/EncryptionDataCommand.php @@ -96,7 +96,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $blind = []; if ($encryptDecrypt === 'encrypt') { $value = $input->getArgument('value') ?? $io->ask('What is the value of the entity you want to encrypt ?'); - [$result, $blind] = $this->encryptor->prepareForStorage((new \ReflectionClass($className))->newInstanceWithoutConstructor(), $fieldName, $value, (bool) $input->getOption('encrypt')); + [$result, $blind] = $this->encryptor->prepareForStorage((new \ReflectionClass($className))->newInstanceWithoutConstructor(), $fieldName, $value, (bool) $input->getOption('blind')); } else { $value = $input->getArgument('value') ?? $io->ask('What is the value of the entity you want to decrypt ?'); $result = $this->encryptor->decrypt($className, $fieldName, $value);