Skip to content

Commit 5fc4032

Browse files
committed
Add support of GraphQL variables
- fixed default value to be same type if not specified
1 parent 37e2c30 commit 5fc4032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/GraphQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GraphQL extends AbstractApi
2020
*
2121
* @return array
2222
*/
23-
public function execute($query, array $variables = null)
23+
public function execute($query, array $variables = array())
2424
{
2525
$this->acceptHeaderValue = 'application/vnd.github.v4+json';
2626
$params = array(

0 commit comments

Comments
 (0)