You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Gitlab/Api/Issues.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,7 @@ public function addDiscussion($project_id, $issue_iid, $body)
289
289
{
290
290
// backwards compatibility
291
291
if (is_array($body)) {
292
+
@trigger_error(sprintf('Passing an array to the $body parameter of %s() is deprecated since 9.18 and will be banned in 10.0.', __METHOD__), E_USER_DEPRECATED);
292
293
$params = $body;
293
294
} else {
294
295
$params = ['body' => $body];
@@ -309,6 +310,7 @@ public function addDiscussionNote($project_id, $issue_iid, $discussion_id, $body
309
310
{
310
311
// backwards compatibility
311
312
if (is_array($body)) {
313
+
@trigger_error(sprintf('Passing an array to the $body parameter of %s() is deprecated since 9.18 and will be banned in 10.0.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('The %s() method\'s $assignee parameter is deprecated since version 9.18 and will be removed in 10.0. Use $parameters[\'assignee_id\'] instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing the assignee to the %s() method\'s $parameters parameter is deprecated since version 9.18 and will be banned in 10.0. Use $parameters[\'assignee_id\'] instead.', __METHOD__), E_USER_DEPRECATED);
152
154
}
153
155
154
156
if (null !== $target_project_id) {
@@ -159,18 +161,22 @@ public function create($project_id, $source, $target, $title, $assignee = null,
159
161
@trigger_error(sprintf('The %s() method\'s $description parameter is deprecated since version 9.18 and will be removed in 10.0. Use $parameters[\'description\'] instead.', __METHOD__), E_USER_DEPRECATED);
160
162
}
161
163
164
+
if (null !== $legacyParams) {
165
+
@trigger_error(sprintf('The %s() method\'s $legacyParams parameter is deprecated since version 9.18 and will be removed in 10.0. Use $parameters instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing an array to the $message parameter of %s() is deprecated since 9.18 and will be banned in 10.0.', __METHOD__), E_USER_DEPRECATED);
199
206
$params = $message;
200
207
} else {
201
208
$params = ['merge_commit_message' => $message];
@@ -372,6 +379,7 @@ public function addDiscussionNote($project_id, $mr_iid, $discussion_id, $body)
372
379
{
373
380
// backwards compatibility
374
381
if (is_array($body)) {
382
+
@trigger_error(sprintf('Passing an array to the $message parameter of %s() is deprecated since 9.18 and will be banned in 10.0.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing the assignee to the %s() method\'s $parameters parameter is deprecated since version 9.18 and will be banned in 10.0. Use $parameters[\'assignee_id\'] instead.', __METHOD__), E_USER_DEPRECATED);
847
+
}
848
+
849
+
if (null !== $description) {
850
+
@trigger_error(sprintf('The %s() method\'s $description parameter is deprecated since version 9.18 and will be removed in 10.0. Use $parameters[\'description\'] instead.', __METHOD__), E_USER_DEPRECATED);
0 commit comments