From d02e2bffee5150f28cb588cb665235ad7da669e7 Mon Sep 17 00:00:00 2001 From: gdw96 Date: Wed, 14 Apr 2021 14:04:37 +0200 Subject: [PATCH] Fix the `Return value of "Ambta\DoctrineEncryptBundle\Command\DoctrineEncryptStatusCommand::execute()" must be of the type int, "null" returned.` error. --- Command/DoctrineEncryptStatusCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Command/DoctrineEncryptStatusCommand.php b/Command/DoctrineEncryptStatusCommand.php index 507e4e41..ba8f1422 100644 --- a/Command/DoctrineEncryptStatusCommand.php +++ b/Command/DoctrineEncryptStatusCommand.php @@ -2,6 +2,7 @@ namespace Ambta\DoctrineEncryptBundle\Command; +use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -53,5 +54,6 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln(''); $output->writeln(sprintf('%d entities found which are containing %d encrypted properties.', count($metaDataArray), $totalCount)); + return Command::SUCCESS; } }