Skip to content

Commit 3e777b4

Browse files
committed
Merge pull request #257 from ifosch/patch-1
Fixes GitHub Runtime Exception when message is null
2 parents 2665cf5 + 72e2c08 commit 3e777b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/PullRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function merged($username, $repository, $id)
115115
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($id).'/merge');
116116
}
117117

118-
public function merge($username, $repository, $id, $message = null)
118+
public function merge($username, $repository, $id, $message = '')
119119
{
120120
return $this->put('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($id).'/merge', array(
121121
'commit_message' => $message

0 commit comments

Comments
 (0)