Skip to content

Commit 6f4f3ca

Browse files
committed
fixed #123
1 parent 8a0f6ef commit 6f4f3ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/JiraClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ public function __construct(ConfigurationInterface $configuration = null, Logger
7474
$this->configuration = $configuration;
7575
$this->json_mapper = new \JsonMapper();
7676

77-
$this->json_mapper->undefinedPropertyHandler = [\JiraRestApi\JsonMapperHelper::class, 'setUndefinedProperty'];
78-
77+
// Fix "\JiraRestApi\JsonMapperHelper::class" syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'
78+
$this->json_mapper->undefinedPropertyHandler = [new \JiraRestApi\JsonMapperHelper(), 'setUndefinedProperty'];
79+
7980
// create logger
8081
if ($logger) {
8182
$this->log = $logger;

0 commit comments

Comments
 (0)