diff --git a/composer.json b/composer.json index 9861d09..f46b35e 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "sabre/dav": "~3.1.2", "sabre/vobject": "^4.0", "easycorp/easy-log-handler": "^1.0", - "zendframework/zend-validator": "^2.10" + "zendframework/zend-validator": "^2.10", + "nesbot/carbon": "^1.14" }, "require-dev": { "phpunit/phpunit" : "> 4.8, <=6.0.0" diff --git a/src/Taskwarrior/Taskwarrior.php b/src/Taskwarrior/Taskwarrior.php index 3f1bba2..4266a6c 100644 --- a/src/Taskwarrior/Taskwarrior.php +++ b/src/Taskwarrior/Taskwarrior.php @@ -42,7 +42,7 @@ class Taskwarrior { public function __construct(Config $config){ if(!isset($config)){ - $this->config = new Configwg(); + $this->config = new Config(); } $this->config = $config; } diff --git a/src/Taskwarrior/TaskwarriorManager.php b/src/Taskwarrior/TaskwarriorManager.php index 1ec5dc2..6014722 100644 --- a/src/Taskwarrior/TaskwarriorManager.php +++ b/src/Taskwarrior/TaskwarriorManager.php @@ -38,7 +38,7 @@ class TaskwarriorManager { public function addTask(VTodo $document){ - $task = $this->taskwarrior->createTask($document->UID); + $task = $this->taskwarrior->createTask((string)$document->UID); $task->setDescription($document);