Skip to content

Commit c2a9a42

Browse files
authored
[4.0] Fixed creating reports (#72)
* Report creating: change post to put and add report in parameters * Report creating: change post to put and add report in parameters: fix cs
1 parent d96987f commit c2a9a42

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Api/Repositories/Workspaces/Commit/Reports.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,18 @@ public function list(array $params = [])
3838
}
3939

4040
/**
41-
* @param array $params
41+
* @param string $report
42+
* @param array $params
4243
*
4344
* @throws \Http\Client\Exception
4445
*
4546
* @return array
4647
*/
47-
public function create(array $params = [])
48+
public function create(string $report, array $params = [])
4849
{
49-
$uri = $this->buildReportsUri();
50+
$uri = $this->buildReportsUri($report);
5051

51-
return $this->post($uri, $params);
52+
return $this->put($uri, $params);
5253
}
5354

5455
/**

0 commit comments

Comments
 (0)