| 1 | <?php namespace Tarsana\Command; |
||
| 8 | 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) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * parent getter and setter. |
||
| 33 | * |
||
| 34 | * @param Tarsana\Command\Command|null |
||
| 35 | * @return Tarsana\Command\Command |
||
| 36 | */ |
||
| 37 | public function parent(Command $value = null) |
||
| 45 | |||
| 46 | } |
||
| 47 |
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..