From a8495331e736233a1d84f1f62199ad72a3c99fe7 Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Sat, 6 Apr 2024 20:22:24 +0300 Subject: [PATCH] chore: update boilerplate to 0.1.0 (#70) --- CHANGELOG.md | 1 + composer.json | 2 +- composer.lock | 19 ++++++------ .../src/Abstracts/ConnectionType.php | 29 +++++++------------ .../src/Abstracts/EnumType.php | 8 ++--- .../src/Abstracts/FieldsType.php | 2 ++ .../src/Abstracts/InputType.php | 2 ++ .../src/Abstracts/InterfaceType.php | 2 ++ .../src/Abstracts/MutationType.php | 20 +++---------- .../src/Abstracts/ObjectType.php | 2 ++ .../src/Abstracts/Type.php | 4 ++- .../src/Abstracts/UnionType.php | 2 ++ .../src/Helper/Helper.php | 12 ++++---- .../src/Interfaces/GraphQLType.php | 2 ++ .../src/Interfaces/Registrable.php | 2 ++ .../src/Interfaces/TypeWithConnections.php | 15 ++-------- .../src/Interfaces/TypeWithFields.php | 14 ++------- .../src/Interfaces/TypeWithInputFields.php | 8 ++--- .../src/Interfaces/TypeWithInterfaces.php | 2 ++ .../src/Traits/TypeNameTrait.php | 7 +++-- .../src/Traits/TypeResolverTrait.php | 4 ++- vendor/composer/installed.json | 19 ++++++------ vendor/composer/installed.php | 10 +++---- 23 files changed, 87 insertions(+), 101 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20afc91..23144cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - chore!: Refactor plugin entrypoint to use `WPGraphQL\FacetWP` namespace. - chore: Implement strict phpstan rules and lint. - chore: Update Composer dependencies and lint. +- chore: Update WPGraphQL Plugin Boilerplate to v0.1.0. - ci: Test against WP 6.5. - ci: Update GitHub Workflows. - ci: Update Strauss to v0.17.0. diff --git a/composer.json b/composer.json index 9c75de0..5f7d5b0 100644 --- a/composer.json +++ b/composer.json @@ -74,7 +74,7 @@ }, "require": { "php": ">=7.4", - "axepress/wp-graphql-plugin-boilerplate": "0.0.9" + "axepress/wp-graphql-plugin-boilerplate": "^0.1.0" }, "require-dev": { "codeception/lib-innerbrowser": "^1.0", diff --git a/composer.lock b/composer.lock index 0ca6586..b7daa3f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,28 +4,29 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e6d398b2cc7adca46f7c80022325c1dd", + "content-hash": "ea203712611148ca049f28aca1aa769f", "packages": [ { "name": "axepress/wp-graphql-plugin-boilerplate", - "version": "0.0.9", + "version": "0.1.0", "source": { "type": "git", "url": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate.git", - "reference": "5062b5b8896d14b8ee566b92fffa4d049e7abd34" + "reference": "49096512cd599068edbbcff8e46684e207789001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/AxeWP/wp-graphql-plugin-boilerplate/zipball/5062b5b8896d14b8ee566b92fffa4d049e7abd34", - "reference": "5062b5b8896d14b8ee566b92fffa4d049e7abd34", + "url": "https://api.github.com/repos/AxeWP/wp-graphql-plugin-boilerplate/zipball/49096512cd599068edbbcff8e46684e207789001", + "reference": "49096512cd599068edbbcff8e46684e207789001", "shasum": "" }, "require": { - "php": ">=7.4 || ^8.0 || ^8.1" + "php": ">=7.4" }, "require-dev": { - "axepress/wp-graphql-cs": "^1.0.0-beta", + "axepress/wp-graphql-cs": "^2.0.0-beta", "axepress/wp-graphql-stubs": "^1.12.2", + "phpcompatibility/php-compatibility": "dev-develop as 9.9.9", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.2", "szepeviktor/phpstan-wordpress": "^1.0", @@ -54,7 +55,7 @@ "description": "Boilerplate for creating WPGraphQL extensions", "support": { "issues": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/issues", - "source": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/tree/0.0.9" + "source": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/tree/0.1.0" }, "funding": [ { @@ -62,7 +63,7 @@ "type": "github" } ], - "time": "2023-06-05T10:47:44+00:00" + "time": "2024-04-06T17:12:24+00:00" } ], "packages-dev": [ diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ConnectionType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ConnectionType.php index 3da4c76..66abdd7 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ConnectionType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ConnectionType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\GraphQLType; @@ -19,22 +21,21 @@ /** * Class - ConnectionType * - * @phpstan-type ConnectionConfig array{ - * fromType: string, + * @phpstan-type ConnectionConfig array{fromType:string, * fromFieldName: string, * resolve: callable, * oneToOne?: bool, * toType?: string, - * connectionArgs?: array>, + * connectionArgs?: array>, * description: string, * defaultValue?: mixed * }>, - * connectionFields?: array>, + * connectionFields?: array>, * description: string, - * args?: array>, + * args?: array>, * description: string, * defaultValue?: mixed, * }>, @@ -56,11 +57,7 @@ public static function init(): void { /** * Defines all possible connection args for the GraphQL type. * - * @return array>, - * description: string, - * defaultValue?: mixed - * }>, + * @return array>,description:string,defaultValue?:mixed}> */ abstract protected static function connection_args(): array; @@ -85,11 +82,7 @@ protected static function get_connection_config( $config ): array { * * @param ?string[] $filter_by an array of specific connections to return. * - * @return array>, - * description: string, - * defaultValue?: mixed - * }> + * @return array>,description:string,defaultValue?:mixed}> */ final public static function get_connection_args( ?array $filter_by = null ): array { $connection_args = static::connection_args(); diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/EnumType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/EnumType.php index fff68cf..914b9c8 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/EnumType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/EnumType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; if ( ! class_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts\EnumType' ) ) { @@ -19,11 +21,7 @@ abstract class EnumType extends Type { /** * Gets the Enum values configuration array. * - * @return array + * @return array */ abstract public static function get_values(): array; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/FieldsType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/FieldsType.php index 42e8287..53450d0 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/FieldsType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/FieldsType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\GraphQLType; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InputType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InputType.php index 7f3eeb6..b3e2f55 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InputType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InputType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithInputFields; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InterfaceType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InterfaceType.php index 909e223..68af6e0 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InterfaceType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InterfaceType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithFields; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/MutationType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/MutationType.php index 5219e1c..1866675 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/MutationType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/MutationType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; if ( ! class_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts\MutationType' ) ) { @@ -19,28 +21,14 @@ abstract class MutationType extends Type { /** * Gets the input fields for the mutation. * - * @return array>, - * description: string, - * defaultValue?: string - * }> + * @return array>,description:string,defaultValue?:string}> */ abstract public static function get_input_fields(): array; /** * Gets the fields for the type. * - * @return array>, - * description: string, - * args?: array>, - * description: string, - * defaultValue?: mixed - * }>, - * resolve?: callable, - * deprecationReason?: string, - * }> + * @return array>,description:string,args?:array>,description:string,defaultValue?:mixed}>,resolve?:callable,deprecationReason?:string}> */ abstract public static function get_output_fields(): array; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ObjectType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ObjectType.php index bf1d78c..639dd13 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ObjectType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ObjectType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithFields; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/Type.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/Type.php index baf1d67..b4aeb51 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/Type.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/Type.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\GraphQLType; @@ -42,7 +44,7 @@ abstract public static function get_description(): string; /** * Gets the $config array used to register the type to WPGraphQL. * - * @return array + * @return array */ protected static function get_type_config(): array { return [ diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/UnionType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/UnionType.php index 744362c..f0a163c 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/UnionType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/UnionType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Abstracts; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Traits\TypeResolverTrait; diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Helper/Helper.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Helper/Helper.php index 8fcceea..089304f 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Helper/Helper.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Helper/Helper.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Helper; if ( ! class_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Helper\Helper' ) ) { @@ -16,11 +18,11 @@ * Class - Helper */ class Helper { - /** - * The hook prefix for the plugin. - * - * @var string - */ + /** + * The hook prefix for the plugin. + * + * @var string + */ public static string $hook_prefix; /** diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/GraphQLType.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/GraphQLType.php index 81b0112..ba05175 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/GraphQLType.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/GraphQLType.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces; if ( ! interface_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\GraphQLType' ) ) { diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/Registrable.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/Registrable.php index 29845b6..53a7ee2 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/Registrable.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/Registrable.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces; if ( ! interface_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\Registrable' ) ) { diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithConnections.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithConnections.php index 60304bf..dfaa632 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithConnections.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithConnections.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces; if ( ! interface_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithConnections' ) ) { @@ -19,18 +21,7 @@ interface TypeWithConnections extends GraphQLType { /** * Gets the properties for the type. * - * @return array>, - * description: string, - * defaultValue?: mixed - * }>, - * connectionInterfaces?: string[], - * oneToOne?: bool, - * resolve?: callable, - * }> + * @return array>,description:string,defaultValue?:mixed}>,connectionInterfaces?:string[],oneToOne?:bool,resolve?:callable}> */ public static function get_connections(): array; } diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithFields.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithFields.php index 5bcac2c..9bce898 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithFields.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithFields.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces; if ( ! interface_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithFields' ) ) { @@ -19,17 +21,7 @@ interface TypeWithFields extends GraphQLType { /** * Gets the fields for the type. * - * @return array>, - * description: string, - * args?: array>, - * description: string, - * defaultValue?: mixed - * }>, - * resolve?: callable, - * deprecationReason?: string, - * }> + * @return array>,description:string,args?:array>,description:string,defaultValue?:mixed}>,resolve?:callable,deprecationReason?:string}> */ public static function get_fields(): array; } diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInputFields.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInputFields.php index 53ba9a1..ead2c70 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInputFields.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInputFields.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces; if ( ! interface_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithInputFields' ) ) { @@ -19,11 +21,7 @@ interface TypeWithInputFields extends GraphQLType { /** * Gets the input fields for the type. * - * @return array>, - * description: string, - * defaultValue?: string - * }> + * @return array>,description:string,defaultValue?:string}> */ public static function get_fields(): array; } diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInterfaces.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInterfaces.php index 8462e8e..6306266 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInterfaces.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Interfaces/TypeWithInterfaces.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces; if ( ! interface_exists( '\WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Interfaces\TypeWithInterfaces' ) ) { diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeNameTrait.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeNameTrait.php index d39fa1b..09627cf 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeNameTrait.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeNameTrait.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Traits; use WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Helper\Helper; @@ -25,14 +27,13 @@ trait TypeNameTrait { * @throws \Exception When the implementing class has no type name. */ final public static function get_type_name(): string { - if ( ! method_exists( static::class, 'type_name' ) ) { + if ( ! is_callable( [ static::class, 'type_name' ] ) ) { throw new Exception( // translators: the implementing class. - sprintf( __( 'To use TypeNameTrait, a %s must implement a `type_name()` method.', 'wp-graphql-plugin-name' ), static::class ) + sprintf( esc_html__( 'To use TypeNameTrait, a %s must implement a `type_name()` method.', 'wp-graphql-plugin-name' ), static::class ) ); } - // @phpstan-ignore-next-line $type_name = static::type_name(); $hook_prefix = Helper::hook_prefix(); diff --git a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeResolverTrait.php b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeResolverTrait.php index 4141c20..43cdfd3 100644 --- a/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeResolverTrait.php +++ b/vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Traits/TypeResolverTrait.php @@ -8,6 +8,8 @@ * Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}. */ +declare( strict_types=1 ); + namespace WPGraphQL\FacetWP\Vendor\AxeWP\GraphQL\Traits; use Closure; @@ -33,7 +35,7 @@ protected static function get_type_resolver(): Closure { if ( empty( $type_name ) ) { throw new Error( // translators: the GraphQL interface type name. - sprintf( __( 'The value passed to %s failed to resolve to a valid GraphQL type', 'wp-graphql-plugin-name' ), static::class ) + sprintf( esc_html__( 'The value passed to %s failed to resolve to a valid GraphQL type', 'wp-graphql-plugin-name' ), static::class ) ); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index d7f9dd7..0c9a81a 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2,31 +2,32 @@ "packages": [ { "name": "axepress/wp-graphql-plugin-boilerplate", - "version": "0.0.9", - "version_normalized": "0.0.9.0", + "version": "0.1.0", + "version_normalized": "0.1.0.0", "source": { "type": "git", "url": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate.git", - "reference": "5062b5b8896d14b8ee566b92fffa4d049e7abd34" + "reference": "49096512cd599068edbbcff8e46684e207789001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/AxeWP/wp-graphql-plugin-boilerplate/zipball/5062b5b8896d14b8ee566b92fffa4d049e7abd34", - "reference": "5062b5b8896d14b8ee566b92fffa4d049e7abd34", + "url": "https://api.github.com/repos/AxeWP/wp-graphql-plugin-boilerplate/zipball/49096512cd599068edbbcff8e46684e207789001", + "reference": "49096512cd599068edbbcff8e46684e207789001", "shasum": "" }, "require": { - "php": ">=7.4 || ^8.0 || ^8.1" + "php": ">=7.4" }, "require-dev": { - "axepress/wp-graphql-cs": "^1.0.0-beta", + "axepress/wp-graphql-cs": "^2.0.0-beta", "axepress/wp-graphql-stubs": "^1.12.2", + "phpcompatibility/php-compatibility": "dev-develop as 9.9.9", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.2", "szepeviktor/phpstan-wordpress": "^1.0", "wp-cli/wp-cli-bundle": "^2.8.1" }, - "time": "2023-06-05T10:47:44+00:00", + "time": "2024-04-06T17:12:24+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -51,7 +52,7 @@ "description": "Boilerplate for creating WPGraphQL extensions", "support": { "issues": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/issues", - "source": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/tree/0.0.9" + "source": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/tree/0.1.0" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 6ff3d20..967f433 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'hsimah-services/wp-graphql-facetwp', 'pretty_version' => 'dev-develop', 'version' => 'dev-develop', - 'reference' => '24fb12a59cd0cbe7e6e9c6581c8380ac252fe096', + 'reference' => '59b7d6382372c8b2aeb4ae1b03841c77dfc75fe5', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -11,9 +11,9 @@ ), 'versions' => array( 'axepress/wp-graphql-plugin-boilerplate' => array( - 'pretty_version' => '0.0.9', - 'version' => '0.0.9.0', - 'reference' => '5062b5b8896d14b8ee566b92fffa4d049e7abd34', + 'pretty_version' => '0.1.0', + 'version' => '0.1.0.0', + 'reference' => '49096512cd599068edbbcff8e46684e207789001', 'type' => 'library', 'install_path' => __DIR__ . '/../axepress/wp-graphql-plugin-boilerplate', 'aliases' => array(), @@ -22,7 +22,7 @@ 'hsimah-services/wp-graphql-facetwp' => array( 'pretty_version' => 'dev-develop', 'version' => 'dev-develop', - 'reference' => '24fb12a59cd0cbe7e6e9c6581c8380ac252fe096', + 'reference' => '59b7d6382372c8b2aeb4ae1b03841c77dfc75fe5', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),