Skip to content

Commit 42de26e

Browse files
committed
Bug fix
Fixed bug in formatBody method for when users used the file method to save their image.
1 parent 86428e9 commit 42de26e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RemoveBg.php

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ protected function formatBody()
203203
switch ($this->imageFormat) {
204204
case 'image_file':
205205
$index = 0;
206+
$data = [];
206207
foreach ($this->body as $key => $value) {
207208
$data[$index]['name'] = $key;
208209
$data[$index]['contents'] = $value;

0 commit comments

Comments
 (0)