diff --git a/src/Serializer/Handler/DependsHandler.php b/src/Serializer/Handler/DependsHandler.php index fbda42d..c26cfab 100644 --- a/src/Serializer/Handler/DependsHandler.php +++ b/src/Serializer/Handler/DependsHandler.php @@ -73,12 +73,12 @@ class DependsHandler implements SubscribingHandlerInterface $list[] = $task->getUuid(); } - return $visitor->visitString(implode(',', $list), $type, $context); + return $visitor->visitArray($list, $type, $context); } /** * @param VisitorInterface $visitor - * @param string $data + * @param array $data * @param array $type * @return ArrayCollection */ @@ -90,7 +90,7 @@ class DependsHandler implements SubscribingHandlerInterface $tasks = []; - foreach (explode(',', $data) as $uuid) { + foreach ($data as $uuid) { $tasks[] = $this->taskManager->getReference($uuid); } diff --git a/src/Task.php b/src/Task.php index b4af602..220e012 100644 --- a/src/Task.php +++ b/src/Task.php @@ -274,6 +274,7 @@ class Task if (false !== $key = array_search($tag, $this->tags)) { unset($this->tags[$key]); + $this->tags = array_values($this->tags); } } diff --git a/src/Taskwarrior.php b/src/Taskwarrior.php index 5b2c974..91c7dec 100644 --- a/src/Taskwarrior.php +++ b/src/Taskwarrior.php @@ -67,7 +67,7 @@ class Taskwarrior $rcOptions ); - if (version_compare($this->version(), '2.5.0.beta2') < 0) { + if (version_compare($this->version(), '2.5.0') < 0) { throw new TaskwarriorException(sprintf("Taskwarrior version %s isn't supported", $this->version())); }