1 | <?php |
||
15 | class UserCommand extends Command |
||
16 | { |
||
17 | /** @var UserService $userService */ |
||
18 | private $userService; |
||
19 | |||
20 | /** |
||
21 | * UserCommand constructor. |
||
22 | * @throws \Doctrine\ORM\ORMException |
||
23 | */ |
||
24 | public function __construct(UserService $userService) |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | */ |
||
33 | protected function configure() |
||
49 | |||
50 | /** |
||
51 | * @param InputInterface $input |
||
52 | * @param OutputInterface $output |
||
53 | * @return int|void|null |
||
54 | * @throws \Doctrine\ORM\OptimisticLockException |
||
55 | */ |
||
56 | protected function execute(InputInterface $input, OutputInterface $output) |
||
71 | } |
||
72 |
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.