m4tthumphrey/php-gitlab-api — pull request #14 by berni2288 (2013-09-10 15:44:20+00:00)
Title: ErrorListener: Fixed wrong parameter being passed to the RuntimeException

Fixed wrong exception throwing

## PHP:

> 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

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