Skip to content

Commit 2ae76a7

Browse files
committed
fixed #486, #487
1 parent 1f59fd3 commit 2ae76a7

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@ you can choose loads environment variables either 'dotenv' or 'array'.
6161

6262
## use dotenv
6363

64+
If you want to use Dotenv based configuration,first of all, you have to install dependency.
6465

65-
copy .env.example file to .env on your project root.
66+
```sh
67+
composer require vlucas/phpdotenv
68+
```
69+
70+
then copy .env.example file to .env on your project root.
6671

6772
```sh
6873
JIRA_HOST='https://your-jira.host.com'

src/Issue/IssueField.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
namespace JiraRestApi\Issue;
44

5+
use AllowDynamicProperties;
56
use DateTimeInterface;
67
use JiraRestApi\ClassSerialize;
78
use JiraRestApi\Project\Project;
89

10+
#[AllowDynamicProperties]
911
class IssueField implements \JsonSerializable
1012
{
1113
use ClassSerialize;

src/Issue/Reporter.php

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,26 @@ class Reporter implements \JsonSerializable
88
{
99
use ClassSerialize;
1010

11-
/** @var string */
12-
public $self;
11+
public string $key;
1312

14-
/** @var string|null */
15-
public $name;
13+
public string $timezone;
1614

17-
/** @var string */
18-
public $emailAddress;
15+
public string $self;
1916

20-
/** @var array|null */
21-
public $avatarUrls;
17+
public ?string $name;
2218

23-
/** @var string */
24-
public $displayName;
19+
public ?string $emailAddress;
2520

26-
/** @var string */
27-
public $active;
21+
public array $avatarUrls;
2822

29-
/** @var bool want assignee to unassigned */
30-
private $wantUnassigned = false;
23+
public string $displayName;
3124

32-
/** @var string */
33-
public $accountId;
25+
public string $active;
26+
27+
// want assignee to unassigned
28+
private bool $wantUnassigned = false;
29+
30+
public string $accountId;
3431

3532
#[\ReturnTypeWillChange]
3633
public function jsonSerialize()

0 commit comments

Comments
 (0)