Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Zarubin committed Jul 22, 2022
1 parent 90b78fb commit 64c8827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/response/RequestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class RequestData extends Response
/**
* @var \nikserg\ItcomPublicApi\models\response\Enrolment
*/
public Enrolment $enrolment;
public ?Enrolment $enrolment;
/**
* @var string
*/
Expand All @@ -138,7 +138,7 @@ protected function prepareResponseContent(array $responseContent): array
$responseContent['subjectFields'][$key] = new SubjectField($value);
}
$responseContent['keyUsage'] = new KeyUsage($responseContent['keyUsage']);
$responseContent['enrolment'] = new Enrolment($responseContent['enrolment']);
$responseContent['enrolment'] = isset($responseContent['enrolment']) ? new Enrolment($responseContent['enrolment']) : null;

return $responseContent;
}
Expand Down

0 comments on commit 64c8827

Please sign in to comment.