Skip to content

Commit

Permalink
Generating stubs for WPGraphQL v1.15.0+repack.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 1, 2023
1 parent 4f3c237 commit 877a778
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-sodium": "*",
"wpackagist-plugin/wp-graphql": "1.14.10"
"wpackagist-plugin/wp-graphql": "1.15.0"
},
"config": {
"allow-plugins": {
Expand Down
13 changes: 8 additions & 5 deletions wp-graphql-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6289,7 +6289,7 @@ public function init()
* @return void
* @throws \Exception
*/
public function init_type_registry(\WPGraphQL\Registry\TypeRegistry $type_registry)
public function init_type_registry(self $type_registry)
{
}
/**
Expand Down Expand Up @@ -10783,15 +10783,16 @@ public static function get_query_id(string $query)
{
}
/**
* Maps new input query args and sa nitizes the input
* Maps new input query args and sanitizes the input
*
* @param mixed|array|string $args The raw query args from the GraphQL query
* @param mixed|array|string $map The mapping of where each of the args should go
* @param string[] $skip Fields to skipped and not be added to the output array.
*
* @return array
* @since 0.5.0
*/
public static function map_input($args, $map)
public static function map_input($args, $map, $skip = [])
{
}
/**
Expand Down Expand Up @@ -15018,6 +15019,7 @@ class DirectiveNode extends \GraphQL\Language\AST\Node
/** @var NodeList<ArgumentNode> */
public $arguments;
}
#[\AllowDynamicProperties]
class DocumentNode extends \GraphQL\Language\AST\Node
{
/** @var string */
Expand Down Expand Up @@ -15601,6 +15603,7 @@ class ObjectValueNode extends \GraphQL\Language\AST\Node implements \GraphQL\Lan
/** @var NodeList<ObjectFieldNode> */
public $fields;
}
#[\AllowDynamicProperties]
class OperationDefinitionNode extends \GraphQL\Language\AST\Node implements \GraphQL\Language\AST\ExecutableDefinitionNode, \GraphQL\Language\AST\HasSelectionSet
{
/** @var string */
Expand Down Expand Up @@ -16975,6 +16978,7 @@ public function assertValid(\GraphQL\Type\Definition\FieldDefinition $parentFiel
/**
* @todo Move complexity-related code to it's own place
*/
#[\AllowDynamicProperties]
class FieldDefinition
{
public const DEFAULT_COMPLEXITY_FN = 'GraphQL\\Type\\Definition\\FieldDefinition::defaultComplexity';
Expand Down Expand Up @@ -17154,6 +17158,7 @@ public function parseLiteral(\GraphQL\Language\AST\Node $valueNode, ?array $vari
{
}
}
#[\AllowDynamicProperties]
class InputObjectField
{
/** @var string */
Expand Down Expand Up @@ -17271,7 +17276,6 @@ class NonNull extends \GraphQL\Type\Definition\Type implements \GraphQL\Type\Def
{
/**
* code sniffer doesn't understand this syntax. Pr with a fix here: waiting on https://github.com/squizlabs/PHP_CodeSniffer/pull/2919
* phpcs:disable Squiz.Commenting.FunctionComment.SpacingAfterParamType
* @param callable():(NullableType&Type)|(NullableType&Type) $type
*/
public function __construct($type)
Expand Down Expand Up @@ -18056,7 +18060,6 @@ class ASTDefinitionBuilder
{
/**
* code sniffer doesn't understand this syntax. Pr with a fix here: waiting on https://github.com/squizlabs/PHP_CodeSniffer/pull/2919
* phpcs:disable Squiz.Commenting.FunctionComment.SpacingAfterParamType
* @param array<string, Node&TypeDefinitionNode> $typeDefinitionsMap
* @param array<string, bool> $options
*/
Expand Down

0 comments on commit 877a778

Please sign in to comment.