| 1 | <?php |
||
| 13 | final class DeleteUserCommand extends Command |
||
| 14 | { |
||
| 15 | /** @var UserRepository */ |
||
| 16 | private $userRepository; |
||
| 17 | |||
| 18 | /** @var DeleteUserHandler */ |
||
| 19 | private $handler; |
||
| 20 | |||
| 21 | public function __construct(UserRepository $userRepository, DeleteUserHandler $handler) |
||
| 27 | |||
| 28 | protected function configure(): void |
||
| 40 | |||
| 41 | protected function execute(InputInterface $input, OutputInterface $output): void |
||
| 58 | } |
||
| 59 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.