From 5e9caad37a31f5468ace8faac02c90a6a5bf95d3 Mon Sep 17 00:00:00 2001 From: Pierre van Horick Date: Mon, 10 Oct 2022 11:50:39 +0000 Subject: [PATCH] Nullable entries for mail list --- CHANGELOG.md | 4 ++++ src/Entity/Email/MailList.php | 8 ++++---- src/TransipAPI.php | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1872b39..45ec862 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ CHANGELOG ========= +6.29.2 +---- +* Fixed getEntries in certain conditions on mailLists. + 6.29.1 ----- * Added type to the Openstack Project entity diff --git a/src/Entity/Email/MailList.php b/src/Entity/Email/MailList.php index 5efa036..10350d8 100644 --- a/src/Entity/Email/MailList.php +++ b/src/Entity/Email/MailList.php @@ -22,9 +22,9 @@ class MailList extends AbstractEntity public $emailAddress; /** - * @var string[] + * @var string[]|null */ - public $entries; + public $entries = null; /** * @return int @@ -75,9 +75,9 @@ public function setEmailAddress(string $emailAddress): void } /** - * @return string[] + * @return string[]|null */ - public function getEntries(): array + public function getEntries(): ?array { return $this->entries; } diff --git a/src/TransipAPI.php b/src/TransipAPI.php index eeaa8b0..56e6a88 100644 --- a/src/TransipAPI.php +++ b/src/TransipAPI.php @@ -78,7 +78,7 @@ class TransipAPI { public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6"; - public const TRANSIP_API_LIBRARY_VERSION = "6.29.1"; + public const TRANSIP_API_LIBRARY_VERSION = "6.29.2"; public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw"; /**