Skip to content

Commit 8da9b0d

Browse files
authored
Merge pull request KnpLabs#442 from naderman/t/hook-update-no-name
name is not an argument on updating a hook
2 parents 0fe3500 + ca0623f commit 8da9b0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Repository/Hooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function create($username, $repository, array $params)
3232

3333
public function update($username, $repository, $id, array $params)
3434
{
35-
if (!isset($params['name'], $params['config'])) {
36-
throw new MissingArgumentException(array('name', 'config'));
35+
if (!isset($params['config'])) {
36+
throw new MissingArgumentException(array('config'));
3737
}
3838

3939
return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/hooks/'.rawurlencode($id), $params);

0 commit comments

Comments
 (0)