Skip to content

Commit

Permalink
Fix success response nullable VK_T_NO parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sabineabele committed Mar 24, 2022
1 parent 87fcabf commit 484a417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Messages/CompleteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function validateResponseParameters()

//check for missing fields, will throw exc. on missing fields
foreach ($responseFields as $fieldName => $usedInHash) {
if (! isset($response[$fieldName])) {
if (! array_key_exists($fieldName, $response)) {
throw new InvalidRequestException("The $fieldName parameter is required");
}
}
Expand Down

0 comments on commit 484a417

Please sign in to comment.