FIX HTTPBulkToolsResponse.addSuccessRecords() fn

This function was trying to merge 2 arrays with PHP fn `array_push()`
which was failing if the second parameter was array as well. This fix
replaces `array_push()` with `array_merge()` fn.

Resolves #187
This commit is contained in:
Peter Schiffer 2024-03-04 15:01:35 +01:00
parent bdefd141ec
commit 379fda091b
No known key found for this signature in database
GPG Key ID: F2A18AC34A008397

View File

@ -197,7 +197,7 @@ class HTTPBulkToolsResponse extends HTTPResponse
*/ */
public function addSuccessRecords(SS_List $records) public function addSuccessRecords(SS_List $records)
{ {
array_push($this->successRecords, $records->toArray()); $this->successRecords = array_merge($this->successRecords, $records->toArray());
return $this; return $this;
} }