fix: syntax config

This commit is contained in:
Aerex 2018-11-25 19:21:31 -06:00
parent 4d96cc4e8c
commit a2b2073bad
3 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,8 @@
"sabre/dav": "~3.1.2", "sabre/dav": "~3.1.2",
"sabre/vobject": "^4.0", "sabre/vobject": "^4.0",
"easycorp/easy-log-handler": "^1.0", "easycorp/easy-log-handler": "^1.0",
"zendframework/zend-validator": "^2.10" "zendframework/zend-validator": "^2.10",
"nesbot/carbon": "^1.14"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit" : "> 4.8, <=6.0.0" "phpunit/phpunit" : "> 4.8, <=6.0.0"

View File

@ -42,7 +42,7 @@ class Taskwarrior {
public function __construct(Config $config){ public function __construct(Config $config){
if(!isset($config)){ if(!isset($config)){
$this->config = new Configwg(); $this->config = new Config();
} }
$this->config = $config; $this->config = $config;
} }

View File

@ -38,7 +38,7 @@ class TaskwarriorManager {
public function addTask(VTodo $document){ public function addTask(VTodo $document){
$task = $this->taskwarrior->createTask($document->UID); $task = $this->taskwarrior->createTask((string)$document->UID);
$task->setDescription($document); $task->setDescription($document);