Skip to content

Commit

Permalink
Fix option blind
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias committed Nov 16, 2023
1 parent d8e00ea commit 878f887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/EncryptionDataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 878f887

Please sign in to comment.