Skip to content

Commit

Permalink
Fix nullable fields...
Browse files Browse the repository at this point in the history
  • Loading branch information
canihavesomecoffee committed Jan 24, 2022
1 parent 14cb673 commit eac7f67
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## 2.x

### 2.1.1 (24 January 2022)

Bugfix release

* Fix
* all fields in ParentCompany are nullable.
* all fields in CompanyRelationShip are nullable.
* Character's personImgUrl is nullable.

### 2.1.0 (24 January 2022)

API additions
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Character.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ class Character
/**
* The url of this character?
*
* @var string
* @var string|null
*/
public string $personImgURL;
public ?string $personImgURL;


}
8 changes: 4 additions & 4 deletions src/Model/CompanyRelationShip.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class CompanyRelationShip
/**
* Identifier for this relationship.
*
* @var integer
* @var integer|null
*/
public int $id;
public ?int $id;
/**
* Name of the relationship.
*
* @var string
* @var string|null
*/
public string $typeName;
public ?string $typeName;
}
12 changes: 6 additions & 6 deletions src/Model/ParentCompany.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ class ParentCompany
/**
* Identifier for this parent company.
*
* @var integer
* @var integer|null
*/
public int $id;
public ?int $id;
/**
* Name of the company (original).
*
* @var string
* @var string|null
*/
public string $name;
public ?string $name;
/**
* The relationship to the other company.
*
* @var CompanyRelationShip
* @var CompanyRelationShip|null
*/
public CompanyRelationShip $relation;
public ?CompanyRelationShip $relation;
}

0 comments on commit eac7f67

Please sign in to comment.