some improvements

This commit is contained in:
DavidBadura
2015-06-28 16:29:47 +00:00
parent a26758dc67
commit 7019d21a71
2 changed files with 15 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ class Taskwarrior
* @param string $taskData
* @param array $rcOptions
* @param string $bin
* @throws TaskwarriorException
*/
public function __construct($taskrc = '~/.taskrc', $taskData = '~/.task', $rcOptions = [], $bin = 'task')
{
@@ -51,6 +52,10 @@ class Taskwarrior
),
$rcOptions
);
if (version_compare($this->version(), '2.4.3') < 0) {
throw new TaskwarriorException(sprintf("Taskwarrior version %s isn't supported", $this->version()));
}
}
/**