1 | <?php |
||
19 | class MigrationManager |
||
20 | { |
||
21 | /** |
||
22 | * @var \Symfony\Component\Console\Application |
||
23 | */ |
||
24 | private $console; |
||
25 | |||
26 | /** |
||
27 | * @var \Rey\BitrixMigrations\Configuration |
||
28 | */ |
||
29 | private $config; |
||
30 | |||
31 | /** |
||
32 | * Create new instance |
||
33 | * |
||
34 | * @param Application $console \Symfony\Component\Console\Application |
||
35 | * @param ConfigurationInterface $config \Rey\BitrixMigrations\Configuration |
||
36 | * |
||
37 | * @api |
||
38 | */ |
||
39 | public function __construct(Application $console, ConfigurationInterface $config) |
||
44 | |||
45 | /** |
||
46 | * Initialize Bitrix migration |
||
47 | * |
||
48 | * @api |
||
49 | */ |
||
50 | public function init() |
||
55 | |||
56 | /** |
||
57 | * Get Configuration |
||
58 | * |
||
59 | * @return \Rey\BitrixMigrations\Configuration |
||
60 | * |
||
61 | * @api |
||
62 | */ |
||
63 | public function getConfiguration() |
||
67 | |||
68 | /** |
||
69 | * Get console instance |
||
70 | * |
||
71 | * @return \Symfony\Component\Console\Application |
||
72 | */ |
||
73 | protected function getConsole() |
||
77 | |||
78 | /** |
||
79 | * Get Console HelperSet instance |
||
80 | * |
||
81 | * @return \Symfony\Component\Console\Helper\HelperSet |
||
82 | */ |
||
83 | protected function getHelperSet() |
||
93 | |||
94 | /** |
||
95 | * Initialize helpers for console |
||
96 | */ |
||
97 | protected function initializeHelpers() |
||
123 | |||
124 | /** |
||
125 | * Get a list of commands |
||
126 | * |
||
127 | * @return string[] Command name |
||
128 | */ |
||
129 | protected function getCommandList() |
||
139 | |||
140 | /** |
||
141 | * Register commands for console |
||
142 | */ |
||
143 | protected function registerCommands() |
||
157 | } |
||
158 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.