Sometimes we are experiencing some warnings in SDK:
array_key_exists() expects parameter 2 to be array, null given
It occurs in RequestException::idx method, when field error_data in response from your API is set and has null value. Thus, first argument of outer idx call in RequestException::144 is also null.
I propose to add fallback for $error_data['error_data'] === null.
Sometimes we are experiencing some warnings in SDK:
array_key_exists() expects parameter 2 to be array, null given
It occurs in
RequestException::idx
method, when fielderror_data
in response from your API is set and hasnull
value. Thus, first argument of outeridx
call inRequestException::144
is also null.I propose to add fallback for
$error_data['error_data'] === null
.