diff --git a/src/AmoCRM/Models/Leads/Pipelines/PipelineModel.php b/src/AmoCRM/Models/Leads/Pipelines/PipelineModel.php index 184f677..70105cb 100644 --- a/src/AmoCRM/Models/Leads/Pipelines/PipelineModel.php +++ b/src/AmoCRM/Models/Leads/Pipelines/PipelineModel.php @@ -65,7 +65,7 @@ public static function fromArray(array $pipeline): self $model = new self(); $model->setId($pipeline['id']); - $model->setName($pipeline['name']); + $model->setName((string)($pipeline['name'] ?? '')); $model->setSort($pipeline['sort']); $model->setAccountId($pipeline['account_id']); $model->setIsMain($pipeline['is_main']);