Skip to content

Commit 39d0725

Browse files
authored
chore: update boilerplate to 0.1.0 (#89)
1 parent 81b214a commit 39d0725

25 files changed

+141
-137
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- chore: Refactor autoloader logic to `Autoloader` class.
1111
- chore: Update Composer dev-deps and fix newly-surfaced PHPCS smells.
1212
- chore: Implement PHPStan strict rules.
13+
- chore: Update WPGraphQL Plugin Boilerplate to v0.1.0.
1314
- ci: Update GitHub Actions to latest versions.
1415
- ci: Test plugin compatibility with WordPress 6.5.0.
1516
- ci: Update Strauss to v0.17.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929
"require": {
3030
"php": ">=7.4",
31-
"axepress/wp-graphql-plugin-boilerplate": "0.0.9"
31+
"axepress/wp-graphql-plugin-boilerplate": "^0.1.0"
3232
},
3333
"require-dev": {
3434
"lucatume/wp-browser": "<3.5",

composer.lock

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ConnectionType.php

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Interfaces\GraphQLType;
@@ -20,22 +21,21 @@
2021
/**
2122
* Class - ConnectionType
2223
*
23-
* @phpstan-type ConnectionConfig array{
24-
* fromType: string,
24+
* @phpstan-type ConnectionConfig array{fromType:string,
2525
* fromFieldName: string,
2626
* resolve: callable,
2727
* oneToOne?: bool,
2828
* toType?: string,
29-
* connectionArgs?: array<string, array{
30-
* type: string|array<string, string | array<string, string>>,
29+
* connectionArgs?: array<string,array{
30+
* type: string|array<string,string | array<string,string>>,
3131
* description: string,
3232
* defaultValue?: mixed
3333
* }>,
34-
* connectionFields?: array<string, array{
35-
* type: string|array<string, string | array<string, string>>,
34+
* connectionFields?: array<string,array{
35+
* type: string|array<string,string | array<string,string>>,
3636
* description: string,
37-
* args?: array<string, array{
38-
* type: string|array<string, string | array<string, string>>,
37+
* args?: array<string,array{
38+
* type: string|array<string,string | array<string,string>>,
3939
* description: string,
4040
* defaultValue?: mixed,
4141
* }>,
@@ -57,11 +57,7 @@ public static function init(): void {
5757
/**
5858
* Defines all possible connection args for the GraphQL type.
5959
*
60-
* @return array<string, array{
61-
* type: string|array<string, string | array<string, string>>,
62-
* description: string,
63-
* defaultValue?: mixed
64-
* }>,
60+
* @return array<string,array{type:string|array<string,string|array<string,string>>,description:string,defaultValue?:mixed}>
6561
*/
6662
abstract protected static function connection_args(): array;
6763

@@ -86,11 +82,7 @@ protected static function get_connection_config( $config ): array {
8682
*
8783
* @param ?string[] $filter_by an array of specific connections to return.
8884
*
89-
* @return array<string, array{
90-
* type: string|array<string, string | array<string, string>>,
91-
* description: string,
92-
* defaultValue?: mixed
93-
* }>
85+
* @return array<string,array{type:string|array<string,string|array<string,string>>,description:string,defaultValue?:mixed}>
9486
*/
9587
final public static function get_connection_args( ?array $filter_by = null ): array {
9688
$connection_args = static::connection_args();

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/EnumType.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
if ( ! class_exists( '\WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\EnumType' ) ) {
@@ -20,11 +21,7 @@ abstract class EnumType extends Type {
2021
/**
2122
* Gets the Enum values configuration array.
2223
*
23-
* @return array<string, array{
24-
* description: string,
25-
* value: mixed,
26-
* deprecationReason?: string
27-
* }>
24+
* @return array<string,array{description:string,value:mixed,deprecationReason?:string}>
2825
*/
2926
abstract public static function get_values(): array;
3027

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/FieldsType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Interfaces\GraphQLType;

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InputType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Interfaces\TypeWithInputFields;

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/InterfaceType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Interfaces\TypeWithFields;

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/MutationType.php

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
if ( ! class_exists( '\WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\MutationType' ) ) {
@@ -20,28 +21,14 @@ abstract class MutationType extends Type {
2021
/**
2122
* Gets the input fields for the mutation.
2223
*
23-
* @return array<string, array{
24-
* type: string|array<string, string | array<string, string>>,
25-
* description: string,
26-
* defaultValue?: string
27-
* }>
24+
* @return array<string,array{type:string|array<string,string|array<string,string>>,description:string,defaultValue?:string}>
2825
*/
2926
abstract public static function get_input_fields(): array;
3027

3128
/**
3229
* Gets the fields for the type.
3330
*
34-
* @return array<string, array{
35-
* type: string|array<string, string | array<string, string>>,
36-
* description: string,
37-
* args?: array<string, array{
38-
* type: string|array<string, string | array<string, string>>,
39-
* description: string,
40-
* defaultValue?: mixed
41-
* }>,
42-
* resolve?: callable,
43-
* deprecationReason?: string,
44-
* }>
31+
* @return array<string,array{type:string|array<string,string|array<string,string>>,description:string,args?:array<string,array{type:string|array<string,string|array<string,string>>,description:string,defaultValue?:mixed}>,resolve?:callable,deprecationReason?:string}>
4532
*/
4633
abstract public static function get_output_fields(): array;
4734

vendor-prefixed/axepress/wp-graphql-plugin-boilerplate/src/Abstracts/ObjectType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @package AxeWP\GraphQL\Abstracts
66
*
77
* @license GPL-3.0-or-later
8-
* Modified by AxePress Development using Strauss.
9-
* @see https://github.com/BrianHenryIE/strauss
8+
* Modified by AxePress Development using {@see https://github.com/BrianHenryIE/strauss}.
109
*/
1110

11+
declare( strict_types=1 );
12+
1213
namespace WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts;
1314

1415
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Interfaces\TypeWithFields;

0 commit comments

Comments
 (0)