File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ Alternatively get a defined task.
140140
141141 Name of current task.
142142- ### body
143- ** type** : ` callable|array|string| null `
143+ ** type** : ` callable|array|null `
144144
145145 Callable task, array of other tasks names or nothing to get a defined tasks
146146
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ function desc(?string $title = null): ?string
159159 * Alternatively get a defined task.
160160 *
161161 * @param string $name Name of current task.
162- * @param callable|array|string| null $body Callable task, array of other tasks names or nothing to get a defined tasks
162+ * @param callable|array|null $body Callable task, array of other tasks names or nothing to get a defined tasks
163163 */
164164function task (string $ name , $ body = null ): Task
165165{
@@ -174,7 +174,7 @@ function task(string $name, $body = null): Task
174174 } elseif (is_array ($ body )) {
175175 $ task = new GroupTask ($ name , $ body );
176176 } else {
177- throw new \InvalidArgumentException ('Task should be a closure or array of other tasks . ' );
177+ throw new \InvalidArgumentException ('Task body should be a function or an array . ' );
178178 }
179179
180180 $ task ->saveSourceLocation ();
You can’t perform that action at this time.
0 commit comments