Skip to content

Commit 5785189

Browse files
Merge pull request #554 from ans-group/feat/35419/50313
[AB#50313] refactor: update deleteById method to accept an optional body
2 parents 2b38279 + e82f2db commit 5785189

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Traits/PageItems.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ public function getById($id)
9090

9191
/**
9292
* Delete a single item from the collection
93-
* @param $id
93+
* @param string $id
94+
* @param null|array<string, mixed> $body
9495
* @return bool
9596
*/
96-
public function deleteById($id)
97+
public function deleteById($id, $body = null)
9798
{
98-
$response = $this->delete($this->collectionPath . '/' . $id);
99+
$response = $this->delete($this->collectionPath . '/' . $id, $body);
99100
return $response->getStatusCode() == 204;
100101
}
101102

0 commit comments

Comments
 (0)