Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
replace {} with [] for array reference
Browse files Browse the repository at this point in the history
  • Loading branch information
PlaidFoxSG authored May 4, 2020
1 parent 9aa32e3 commit a1addcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function validate()

$code = !is_null($receipt->read('cvd_result')) ? $receipt->read('cvd_result') : null;

if ($gateway->cvd && !is_null($code) && $code !== 'null' && !in_array($code{1}, $gateway->cvdCodes)) {
if ($gateway->cvd && !is_null($code) && $code !== 'null' && !in_array($code[1], $gateway->cvdCodes)) {
$this->status = self::CVD;
$this->failedCvd = true;

Expand Down

0 comments on commit a1addcc

Please sign in to comment.