Unable to create hook

Issue #72 resolved
Luke Policinski created an issue

When using the create method on the hook :

$response = $hook->create( $owner, $slug, [ 'description' => 'CodePier', 'url' => action('WebHookController@deploy', $site->hash), 'active' => true, 'events' => [ 'repo:push', ], ]);

It will error out because of

L128 : /Http/Client.php if (count($params) > 0) {

As you are json_encoding the params which is a string and count must accept an array

Comments (5)

  1. Log in to comment