Skip to content

Commit

Permalink
fix error with vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorchi committed Jan 4, 2019
1 parent fa2a507 commit 19ffbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/FinkokDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function cancel(array $uuids, $rfc, $cer, $key)
}

$canceledStatus = $response->cancelResult->Folios->Folio->EstatusCancelacion ?? null;
if ($canceledStatus && preg_match('/Cancelación|Cancelado/', $statusUuid)) {
if ($canceledStatus && preg_match('/Cancelación|Cancelado/', $canceledStatus)) {
throw new CfdiAlreadyCanceledException('El comprobante ya ha sido cancelado.');
}

Expand Down

0 comments on commit 19ffbb4

Please sign in to comment.