Skip to content

Commit 19fbb50

Browse files
authored
Merge pull request #1 from otzy/otzy-patch-1
disable strict object type check in JsonMapper
2 parents 06c20a4 + 0d4d222 commit 19fbb50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/JiraClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public function __construct(ConfigurationInterface $configuration = null, Logger
7979
// Properties that are annotated with `@var \DateTimeInterface` should result in \DateTime objects being created.
8080
$this->json_mapper->classMap['\\'.\DateTimeInterface::class] = \DateTime::class;
8181

82+
// Just class mapping is not enough, bStrictObjectTypeChecking must be set to false.
83+
$this->json_mapper->bStrictObjectTypeChecking = false;
84+
8285
// create logger
8386
if ($this->configuration->getJiraLogEnabled()) {
8487
if ($logger) {

0 commit comments

Comments
 (0)