1 | <?php |
||
26 | class Extension implements ExtensionInterface |
||
27 | { |
||
28 | private const IMPLEMENT_KEY = 'implement'; |
||
29 | |||
30 | public const COMMAND_IDS = [ |
||
31 | self::IMPLEMENT_KEY => 'console.commands.behavior_implement' |
||
32 | ]; |
||
33 | |||
34 | private const IO_ID = 'console.io'; |
||
35 | |||
36 | /** |
||
37 | * @var ImplementCommand |
||
38 | */ |
||
39 | private $implementCommand; |
||
40 | |||
41 | /** |
||
42 | * @param ServiceContainer $container |
||
43 | * @param array $params |
||
44 | */ |
||
45 | public function load(ServiceContainer $container, array $params) |
||
49 | |||
50 | private function registerCommands(ServiceContainer $container) |
||
54 | |||
55 | private function registerImplementCommand(ServiceContainer $container) |
||
72 | |||
73 | /** |
||
74 | * @param Command $implementCommand |
||
75 | */ |
||
76 | public function setImplementCommand(Command $implementCommand) |
||
80 | |||
81 | /** |
||
82 | * @param Writer $writer |
||
83 | * @return Console\Command\ImplementCommand |
||
84 | */ |
||
85 | public function getImplementCommand(Writer $writer, InlineConfigurator $configurator): ImplementCommand |
||
91 | |||
92 | /** |
||
93 | * @param Writer $writer |
||
94 | * @return Console\Command\ImplementCommand |
||
95 | */ |
||
96 | private static function createImplementCommand(Writer $writer, InlineConfigurator $configurator): ImplementCommand |
||
100 | |||
101 | /** |
||
102 | * @param ServiceContainer $container |
||
103 | * @return Writer |
||
104 | */ |
||
105 | private static function retrieveConsoleWriter(ServiceContainer $container) |
||
111 | |||
112 | /** |
||
113 | * @param ConsoleIO $io |
||
114 | * @return Writer |
||
115 | */ |
||
116 | private static function createConsoleWriter(ConsoleIO $io) |
||
123 | |||
124 | /** |
||
125 | * @return InlineConfigurator |
||
126 | */ |
||
127 | private static function createConfigurator() |
||
131 | |||
132 | /** |
||
133 | * @param ServiceContainer $container |
||
134 | * @return ConsoleIO |
||
135 | */ |
||
136 | private static function retrieveConsoleIo(ServiceContainer $container) |
||
140 | } |
||
141 | |||
142 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..