Fixed php notice with deprecated schema constructor

This commit is contained in:
vladar 2016-09-15 17:32:54 +07:00
parent b93519170f
commit 4b651d80a5

View File

@ -60,7 +60,7 @@ class Schema
'See https://github.com/webonyx/graphql-php/issues/36', 'See https://github.com/webonyx/graphql-php/issues/36',
E_USER_DEPRECATED E_USER_DEPRECATED
); );
list($queryType, $mutationType, $subscriptionType) = func_get_args(); list($queryType, $mutationType, $subscriptionType) = func_get_args() + [null, null, null];
$config = [ $config = [
'query' => $queryType, 'query' => $queryType,