From a2b2073bad2e6c838025d6af7fcdfb7c3fdb4ed8 Mon Sep 17 00:00:00 2001 From: Aerex Date: Sun, 25 Nov 2018 19:21:31 -0600 Subject: [PATCH] fix: syntax config --- composer.json | 3 ++- src/Taskwarrior/Taskwarrior.php | 2 +- src/Taskwarrior/TaskwarriorManager.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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);