Skip to content

Commit

Permalink
Set types correctly for Version class (#518)
Browse files Browse the repository at this point in the history
* add default values to properties not sent

* release date is nullable

* name cannot be nullable

---------

Co-authored-by: martin.reinfandt <[email protected]>
  • Loading branch information
reinfi and reinfi authored Sep 6, 2023
1 parent 6d186c0 commit 35be23f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Issue/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ 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)
{
Expand Down

0 comments on commit 35be23f

Please sign in to comment.