Skip to content

Commit 76336a2

Browse files
authored
Fixes JsonMapper exception (fixes #22) (#23)
1 parent 93da5d4 commit 76336a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Issue/Worklog.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ public function setComment(AtlassianDocumentFormat $comment): static
5454
return $this;
5555
}
5656

57-
// Note that in the docblock below, you cannot replace `mixed` by `\DateTimeInterface|string` because JsonMapper doesn't support that,
58-
// see <https://github.com/cweiske/jsonmapper/issues/64#issuecomment-269545585>.
59-
6057
/**
58+
* Note that in the docblock below, you cannot replace `mixed` by `\DateTimeInterface|string` because JsonMapper doesn't support that,
59+
* see <https://github.com/cweiske/jsonmapper/issues/64#issuecomment-269545585>.
60+
*
6161
* @param DateTimeInterface|string $started started time value(\DateTimeInterface|string) e.g. - new \DateTime("2016-03-17 11:15:34") or "2016-03-17 11:15:34"
6262
*
6363
* @throws JiraException
6464
*
6565
* @return $this
6666
*/
67-
public function setStarted(DateTimeInterface|string $started): static
67+
public function setStarted(mixed $started): static
6868
{
6969
if (is_string($started)) {
7070
$dt = new \DateTime($started);

0 commit comments

Comments
 (0)