Skip to content

Commit 590b672

Browse files
author
Sebastian Schöps
committed
Bugfix.
1 parent 75a553e commit 590b672

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Models/CamundaModel.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ public function __construct($id = null, $attributes = [])
2727

2828
protected function post($url, $data = [], $json = false)
2929
{
30-
$data = $json ? ['json' => $data] : $data;
30+
$data = $json ? ['json' => $data] : array_merge(['json' => ['a' => 'b']], $data);
3131
return $this->request($url, 'post', $data);
3232
}
3333

3434
protected function put($url, $data = [], $json = false)
3535
{
36-
$data = $json ? ['json' => $data] : $data;
36+
$data = $json ? ['json' => $data] : array_merge(['json' => ['a' => 'b']], $data);
3737
return $this->request($url, 'put', $data);
3838
}
3939

4040
protected function delete($url, $data = [], $json = false)
4141
{
42-
$data = $json ? ['json' => $data] : $data;
42+
$data = $json ? ['json' => $data] : array_merge(['json' => ['a' => 'b']], $data);
4343
return $this->request($url, 'delete', $data);
4444
}
4545

0 commit comments

Comments
 (0)