src/Build.php
public function build(array &$errors = null):array {
		$updatedTasks = [];
		foreach($this->taskList as $pathMatch => $task) {
			if($task->build($errors)) {
				$updatedTasks []= $task;
			}
		}

		return $updatedTasks;
	}
public function build(array &$errors = null):array {
		$updatedTasks = [];
		foreach($this->taskList as $pathMatch => $task) {
			if($task->build($errors)) {
				$updatedTasks []= $task;
			}
		}

		return $updatedTasks;
	}
public function build ( array & $ errors = null ) : array { $ updatedTasks = [ ] ; foreach ( $ this -> taskList as $ pathMatch => $ task ) { if ( $ task -> build ( $ errors ) ) { $ updatedTasks [ ] = $ task ; } } return $ updatedTasks ; }
Executes the commands associated with each build task.
@return Task[] List of tasks built (some may not need building due to
having no changes).
Executes the commands associated with each build task .