File tree Expand file tree Collapse file tree 3 files changed +21
-17
lines changed Expand file tree Collapse file tree 3 files changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,13 @@ you can choose loads environment variables either 'dotenv' or 'array'.
61
61
62
62
## use dotenv
63
63
64
+ If you want to use Dotenv based configuration,first of all, you have to install dependency.
64
65
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.
66
71
67
72
``` sh
68
73
JIRA_HOST=' https://your-jira.host.com'
Original file line number Diff line number Diff line change 2
2
3
3
namespace JiraRestApi \Issue ;
4
4
5
+ use AllowDynamicProperties ;
5
6
use DateTimeInterface ;
6
7
use JiraRestApi \ClassSerialize ;
7
8
use JiraRestApi \Project \Project ;
8
9
10
+ #[AllowDynamicProperties]
9
11
class IssueField implements \JsonSerializable
10
12
{
11
13
use ClassSerialize;
Original file line number Diff line number Diff line change @@ -8,29 +8,26 @@ class Reporter implements \JsonSerializable
8
8
{
9
9
use ClassSerialize;
10
10
11
- /** @var string */
12
- public $ self ;
11
+ public string $ key ;
13
12
14
- /** @var string|null */
15
- public $ name ;
13
+ public string $ timezone ;
16
14
17
- /** @var string */
18
- public $ emailAddress ;
15
+ public string $ self ;
19
16
20
- /** @var array|null */
21
- public $ avatarUrls ;
17
+ public ?string $ name ;
22
18
23
- /** @var string */
24
- public $ displayName ;
19
+ public ?string $ emailAddress ;
25
20
26
- /** @var string */
27
- public $ active ;
21
+ public array $ avatarUrls ;
28
22
29
- /** @var bool want assignee to unassigned */
30
- private $ wantUnassigned = false ;
23
+ public string $ displayName ;
31
24
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 ;
34
31
35
32
#[\ReturnTypeWillChange]
36
33
public function jsonSerialize ()
You can’t perform that action at this time.
0 commit comments