@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $callable |
|
151 | + * @param \Closure $callable |
|
152 | 152 | */ |
153 | 153 | public function catchIO($callable) |
154 | 154 | { |
@@ -356,7 +356,7 @@ |
||
356 | 356 | * Iterate other hosts, allowing to call run func in callback. |
357 | 357 | * |
358 | 358 | * @experimental |
359 | - * @param Host|Host[] $hosts |
|
359 | + * @param Host[] $hosts |
|
360 | 360 | * @param callable $callback |
361 | 361 | */ |
362 | 362 | function on($hosts, callable $callback) |
@@ -145,6 +145,9 @@ |
||
145 | 145 | } |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $taskName |
|
150 | + */ |
|
148 | 151 | private function addTaskToTree($taskName, $hasChildren = false, $isLast = false) { |
149 | 152 | $this->tree[] = [ |
150 | 153 | 'taskName' => $taskName, |