1 | <?php |
||
18 | class CreateCommand extends AbstractCustomerCommand |
||
19 | { |
||
20 | /** |
||
21 | * @var TokenFactory |
||
22 | */ |
||
23 | private $tokenModelFactory; |
||
24 | |||
25 | protected function configure() |
||
34 | |||
35 | /** |
||
36 | * @param Token $tokenModelFactory |
||
|
|||
37 | */ |
||
38 | public function inject(TokenFactory $tokenModelFactory) |
||
42 | |||
43 | /** |
||
44 | * @param InputInterface $input |
||
45 | * @param OutputInterface $output |
||
46 | * |
||
47 | * @return int|void |
||
48 | * @throws Exception |
||
49 | */ |
||
50 | protected function execute(InputInterface $input, OutputInterface $output) |
||
70 | } |
||
71 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.