Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit eba4d15

Browse files
authored
Merge pull request #12 from zorn-v/patch-1
Fixed broadcast method return
2 parents a0b4b33 + 1ddc494 commit eba4d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request/Method/Payment/Broadcast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function execute(array $optional = [])
3737
'tx' => $this->getTransaction()
3838
], $optional));
3939

40-
return isset($data[1]) ? $data[1] : null;
40+
return is_array($data) && isset($data[1]) ? $data[1] : $data;
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)