small changes
This commit is contained in:
parent
6d13ee7d3a
commit
85132b8189
@ -39,6 +39,14 @@ class Recurring
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->recurring;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
@ -48,7 +48,7 @@ class RecurringHandler implements SubscribingHandlerInterface
|
||||
*/
|
||||
public function serializeCarbon(VisitorInterface $visitor, Recurring $recurring, array $type, Context $context)
|
||||
{
|
||||
return $visitor->visitString((string)$recurring, $type, $context);
|
||||
return $visitor->visitString($recurring->getValue(), $type, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -221,7 +221,7 @@ class TaskManager
|
||||
try {
|
||||
$this->taskwarrior->command('list');
|
||||
} catch (TaskwarriorException $e) {
|
||||
// to nothing
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
@ -281,7 +281,6 @@ class TaskManager
|
||||
$registry->registerSubscribingHandler(new RecurringHandler());
|
||||
})
|
||||
->addDefaultHandlers()
|
||||
->setDebug(true)
|
||||
->build();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user