From 15e675536fb2aa891de328d3157c9ff535efef4b Mon Sep 17 00:00:00 2001 From: narayana Date: Fri, 16 Sep 2022 15:52:28 +0530 Subject: [PATCH] fix undefined array key --- src/Plivo/Resources/Number/Number.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plivo/Resources/Number/Number.php b/src/Plivo/Resources/Number/Number.php index 7800c8ff..0fcd6df8 100644 --- a/src/Plivo/Resources/Number/Number.php +++ b/src/Plivo/Resources/Number/Number.php @@ -72,10 +72,10 @@ function __construct(BaseClient $client, array $response, $authId) 'complianceApplicationId' => $response['compliance_application_id'], 'complianceStatus' => $response['compliance_status'] ]; - if ($response['object_id']) { + if (isset($response['object_id'])) { $this->properties['objectId'] = $response['object_id']; } - if ($response['object_type']) { + if (isset($response['object_type'])) { $this->properties['objectType'] = $response['object_type']; } $this->pathParams = [