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
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -48,7 +48,7 @@ class RecurringHandler implements SubscribingHandlerInterface
|
||||||
*/
|
*/
|
||||||
public function serializeCarbon(VisitorInterface $visitor, Recurring $recurring, array $type, Context $context)
|
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 {
|
try {
|
||||||
$this->taskwarrior->command('list');
|
$this->taskwarrior->command('list');
|
||||||
} catch (TaskwarriorException $e) {
|
} catch (TaskwarriorException $e) {
|
||||||
// to nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +281,6 @@ class TaskManager
|
||||||
$registry->registerSubscribingHandler(new RecurringHandler());
|
$registry->registerSubscribingHandler(new RecurringHandler());
|
||||||
})
|
})
|
||||||
->addDefaultHandlers()
|
->addDefaultHandlers()
|
||||||
->setDebug(true)
|
|
||||||
->build();
|
->build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue