Skip to content

Commit

Permalink
Fix error "Cannot use object of type stdClass as array" (#105)
Browse files Browse the repository at this point in the history
Fix #21
  • Loading branch information
eesnaola authored May 7, 2021
1 parent e64d0b5 commit 291ffae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Class/ElectronicBilling.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function CreateNextVoucher($data, $return_response = FALSE)
$data['CbteHasta'] = $voucher_number;

$res = $this->CreateVoucher($data, $return_response);
$res['voucher_number'] = $voucher_number;
$res->voucher_number = $voucher_number;

return $res;
}
Expand Down

0 comments on commit 291ffae

Please sign in to comment.