Skip to content

Commit

Permalink
Merge pull request #5 from josmiguel92/master
Browse files Browse the repository at this point in the history
Update Messenger.php to fix a deprecation indexing a string
  • Loading branch information
kulbakin authored Jun 21, 2023
2 parents 18c1f98 + 90d28d1 commit 29e9e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PSIGate/Messenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function _request($url, $data, $opts = array())
*/
public function analyseTransactionResult($result)
{
if ('Y' != $result['ReturnCode']{0}) {
if ('Y' != $result['ReturnCode'][0]) {
if ( ! empty($result['ErrMsg'])) {
list($errCode, $errMsg) = explode(':', $result['ErrMsg'], 2);
} else {
Expand Down

0 comments on commit 29e9e07

Please sign in to comment.