| 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 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function once() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function onlyOn($servers = []) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * List of tasks names. |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getTasks() |
||
| 61 | } |
||
| 62 |
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..