Skip to content

Commit

Permalink
Merge pull request #15 from amocrm/hotfix/issue#14
Browse files Browse the repository at this point in the history
fix null values for embedded customers
  • Loading branch information
bessudnov authored Jun 7, 2020
2 parents b491f48 + 64d320a commit 602f4ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AmoCRM/Models/CompanyModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/AmoCRM/Models/ContactModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 602f4ae

Please sign in to comment.