Skip to content

Conversation

@berni2288
Copy link

Fixed wrong exception throwing

PHP Error

Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in
\lib\Gitlab\HttpClient\Listener\ErrorListener.php on line 60

Request that throwed the error

// Gitlab throwed an error because the source and target branch are the same
$project->createMergeRequest("samebranchname", "samebranchname", "Some text");

m4tthumphrey added a commit that referenced this pull request Sep 16, 2013
ErrorListener: Fixed wrong parameter being passed to the RuntimeException
@m4tthumphrey m4tthumphrey merged commit 32d8c66 into GitLabPHP:master Sep 16, 2013
@m4tthumphrey
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants