Skip to content

#242 Gitlab/Model/MergeRequest methods fails on incorrect id usage #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Gitlab/Model/MergeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public static function fromArray(Client $client, Project $project, array $data)

/**
* @param Project $project
* @param int $id
* @param int $iid
* @param Client $client
*/
public function __construct(Project $project, $id = null, Client $client = null)
public function __construct(Project $project, $iid = null, Client $client = null)
{
$this->setClient($client);
$this->setData('project', $project);
$this->setData('id', $id);
$this->setData('iid', $iid);
}

/**
Expand Down