Skip to content

Commit 4b651d8

Browse files
committed
Fixed php notice with deprecated schema constructor
1 parent b935191 commit 4b651d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct($config = null)
6060
'See https://github.com/webonyx/graphql-php/issues/36',
6161
E_USER_DEPRECATED
6262
);
63-
list($queryType, $mutationType, $subscriptionType) = func_get_args();
63+
list($queryType, $mutationType, $subscriptionType) = func_get_args() + [null, null, null];
6464

6565
$config = [
6666
'query' => $queryType,

0 commit comments

Comments
 (0)