1 | <?php |
||
18 | final class ImportTranslationsFromFileCommand extends Command |
||
19 | { |
||
20 | /** @var Importer */ |
||
21 | private $importer; |
||
22 | |||
23 | /** @var TranslatorInterface */ |
||
24 | private $translator; |
||
25 | |||
26 | /** @var array */ |
||
27 | private $locales; |
||
28 | |||
29 | /** |
||
30 | * ImportTranslationsFromFileCommand constructor. |
||
31 | * |
||
32 | * @param Importer $importer |
||
33 | * @param Translator $translator |
||
|
|||
34 | * @param $locales |
||
35 | */ |
||
36 | public function __construct(Importer $importer, TranslatorInterface $translator, $locales) |
||
43 | |||
44 | /** |
||
45 | * Configures this command |
||
46 | */ |
||
47 | protected function configure() |
||
55 | |||
56 | /** |
||
57 | * @throws LogicException |
||
58 | * |
||
59 | * @param InputInterface $input |
||
60 | * @param OutputInterface $output |
||
61 | */ |
||
62 | protected function execute(InputInterface $input, OutputInterface $output) |
||
75 | } |
||
76 |
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.