DoctrineEncryptBundle
DoctrineEncryptBundle copied to clipboard
Add missing return value for Command's execute() methods (Symfony >= 4.4)
Fixes:
Return value of "Ambta\DoctrineEncryptBundle\Command\DoctrineEncryptStatusCommand::execute()" must be of the type int, "null" returned. when using Symfony 5
Similar to https://github.com/GiveMeAllYourCats/DoctrineEncryptBundle/pull/41 with the reviewers' suggestions implemented.
It would probably be better not to use self::FAILURE
and self::SUCCESS
but rather 1
and 0
in order to still support versions of Symonfy < 5.1
Similar to another pull request that that were copied: https://github.com/DoctrineEncryptBundle/DoctrineEncryptBundle/pull/4
Please see these comments:
- https://github.com/absolute-quantum/DoctrineEncryptBundle/pull/65#issuecomment-1476301156
- https://github.com/absolute-quantum/DoctrineEncryptBundle/pull/65#issuecomment-1638006829
The new package that I hope will be maintained by more than 1 person