Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": "^8.0",
"ext-curl": "*",
"ext-json": "*",
"netresearch/jsonmapper": "^3.0|^4.0|^5.0",
"netresearch/jsonmapper": "^4.2",
"monolog/monolog": "^2.0|^3.0"
},
"suggest": {
Expand Down
16 changes: 8 additions & 8 deletions src/Issue/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ class Version implements \JsonSerializable
public string $id;

// Version name: ex: 4.2.3
public ?string $name;
public string $name;

// version description: ex; improvement performance
public ?string $description;
public ?string $description = null;

public bool $archived;

public bool $released;

public string $releaseDate;
public ?string $releaseDate = null;

public bool $overdue;
public bool $overdue = false;

public ?string $userReleaseDate;
public ?string $userReleaseDate = null;

public int $projectId;

public ?string $startDate;
public ?string $userStartDate;
public ?string $startDate = null;
public ?string $userStartDate = null;

public function __construct($name = null)
public function __construct(string $name)
{
$this->name = $name;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Version/VersionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function create($version)

return $this->json_mapper->map(
json_decode($ret),
new Version()
Version::class
);
}

Expand Down Expand Up @@ -71,7 +71,7 @@ public function get(string $id)

return $this->json_mapper->map(
json_decode($ret),
new Version()
Version::class
);
}

Expand Down Expand Up @@ -100,7 +100,7 @@ public function update(Version $version): Version

return $this->json_mapper->map(
json_decode($ret),
new Version()
Version::class
);
}

Expand Down