1 | <?php namespace Tarsana\Command; |
||
8 | abstract class SubCommand extends Command { |
||
9 | |||
10 | /** |
||
11 | * The parent command. |
||
12 | * |
||
13 | * @var Tarsana\Command\Command |
||
14 | */ |
||
15 | protected $parent; |
||
16 | |||
17 | /** |
||
18 | * Creates a new SubCommand. |
||
19 | * |
||
20 | * @param Command $parent |
||
21 | */ |
||
22 | public function __construct(Command $parent) |
||
28 | |||
29 | protected function setupSubCommands() |
||
33 | |||
34 | /** |
||
35 | * parent getter and setter. |
||
36 | * |
||
37 | * @param Tarsana\Command\Command|null |
||
38 | * @return Tarsana\Command\Command |
||
39 | */ |
||
40 | public function parent(Command $value = null) |
||
48 | |||
49 | } |
||
50 |
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..