Skip to content

Commit a5b1e79

Browse files
committed
add null coallease for handling no exists of Acuse node
1 parent ef9807c commit a5b1e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/FinkokDriver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ protected function cancelResultToAttributes($cancelResult): array
237237
{
238238
return [
239239
'folios' => $cancelResult->Folios,
240-
'acuse' => $cancelResult->Acuse,
240+
'acuse' => $cancelResult->Acuse ?? null,
241241
'date' => Carbon::parse($cancelResult->Fecha),
242242
'rfc' => $cancelResult->RfcEmisor,
243243
];

0 commit comments

Comments
 (0)