From 64d320a37ec9094c93a4dfc4df5d99a78b2768bd Mon Sep 17 00:00:00 2001 From: Nikita Date: Mon, 8 Jun 2020 00:36:08 +0300 Subject: [PATCH] fix null values for embedded customers --- src/AmoCRM/Models/CompanyModel.php | 4 ++-- src/AmoCRM/Models/ContactModel.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AmoCRM/Models/CompanyModel.php b/src/AmoCRM/Models/CompanyModel.php index a839a22e..c1dc0bdd 100644 --- a/src/AmoCRM/Models/CompanyModel.php +++ b/src/AmoCRM/Models/CompanyModel.php @@ -412,9 +412,9 @@ public function setContacts(ContactsCollection $contacts): self } /** - * @return CustomersCollection + * @return null|CustomersCollection */ - public function getCustomers(): CustomersCollection + public function getCustomers(): ?CustomersCollection { return $this->customers; } diff --git a/src/AmoCRM/Models/ContactModel.php b/src/AmoCRM/Models/ContactModel.php index 2f662de1..ac26a319 100644 --- a/src/AmoCRM/Models/ContactModel.php +++ b/src/AmoCRM/Models/ContactModel.php @@ -445,9 +445,9 @@ public function setCompany(CompanyModel $company): self } /** - * @return CustomersCollection + * @return null|CustomersCollection */ - public function getCustomers(): CustomersCollection + public function getCustomers(): ?CustomersCollection { return $this->customers; }