From abf10b05f81469a55a4e0f9fb131cc733e87a6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Sat, 11 Feb 2017 00:03:38 -0300 Subject: [PATCH] Allow to define default options in the tasks (eg: flags) --- src/Task/AbstractTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Task/AbstractTask.php b/src/Task/AbstractTask.php index 395dd5f..ee03134 100644 --- a/src/Task/AbstractTask.php +++ b/src/Task/AbstractTask.php @@ -62,7 +62,7 @@ abstract class AbstractTask $options = []; } - $this->options = array_merge($options, $this->getDefaults()); + $this->options = array_merge($this->getDefaults(), $options); return $this; }