| 1 | <?php  | 
            ||
| 10 | class GroupTask extends Task  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * List of tasks.  | 
            ||
| 14 | * @var array  | 
            ||
| 15 | 4 | */  | 
            |
| 16 | private $group;  | 
            ||
| 17 | |||
| 18 | 4 | /**  | 
            |
| 19 | * @param string $name Tasks name  | 
            ||
| 20 | * @param string $group  | 
            ||
| 21 | */  | 
            ||
| 22 | public function __construct($name, $group)  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 |      * {@inheritdoc} | 
            ||
| 30 | */  | 
            ||
| 31 | public function run(Context $context)  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | *  | 
            ||
| 38 | */  | 
            ||
| 39 | public function getTasks()  | 
            ||
| 43 | }  | 
            ||
| 44 | 
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..