Skip to content

Commit 19440ea

Browse files
committed
Merge commit '8ee0e4c6e3b51e8c10bdd48e92645c591e8a3ef1' into chore/strict-phpstan-fixes
- update phpstan.neon.dist
2 parents 764099c + 8ee0e4c commit 19440ea

File tree

68 files changed

+1058
-763
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1058
-763
lines changed

access-functions.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ function get_graphql_register_action() {
150150
*
151151
* Should be used at the `graphql_register_types` hook.
152152
*
153-
* @param mixed|string|array<string> $interface_names Array of one or more names of the GraphQL Interfaces to apply to the GraphQL Types
154-
* @param mixed|string|array<string> $type_names Array of one or more names of the GraphQL Types to apply the interfaces to.
153+
* @param string|string[] $interface_names Array of one or more names of the GraphQL Interfaces to apply to the GraphQL Types
154+
* @param string|string[] $type_names Array of one or more names of the GraphQL Types to apply the interfaces to.
155155
*
156156
* Example:
157157
* The following would register the "MyNewInterface" interface to the Post and Page type in the
@@ -819,10 +819,10 @@ function get_graphql_setting( string $option_name, $default_value = '', $section
819819

820820
/**
821821
* Filter the section fields
822-
*
823-
* @param array $section_fields The values of the fields stored for the section
824-
* @param string $section_name The name of the section
825-
* @param mixed $default_value The default value for the option being retrieved
822+
823+
* @param array<string,mixed> $section_fields The values of the fields stored for the section
824+
* @param string $section_name The name of the section
825+
* @param mixed $default_value The default value for the option being retrieved
826826
*/
827827
$section_fields = apply_filters( 'graphql_get_setting_section_fields', $section_fields, $section_name, $default_value );
828828

@@ -834,11 +834,11 @@ function get_graphql_setting( string $option_name, $default_value = '', $section
834834
/**
835835
* Filter the value before returning it
836836
*
837-
* @param mixed $value The value of the field
838-
* @param mixed $default_value The default value if there is no value set
839-
* @param string $option_name The name of the option
840-
* @param array $section_fields The setting values within the section
841-
* @param string $section_name The name of the section the setting belongs to
837+
* @param mixed $value The value of the field
838+
* @param mixed $default_value The default value if there is no value set
839+
* @param string $option_name The name of the option
840+
* @param array<string,mixed> $section_fields The setting values within the section
841+
* @param string $section_name The name of the section the setting belongs to
842842
*/
843843
return apply_filters( 'graphql_get_setting_section_field_value', $value, $default_value, $option_name, $section_fields, $section_name );
844844
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"codeception/util-universalframework": "^1.0",
4040
"lucatume/wp-browser": "^3.1.6",
4141
"phpcompatibility/phpcompatibility-wp": "^2.1",
42+
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9",
4243
"phpstan/extension-installer": "^1.1",
4344
"phpstan/phpstan": "~1.10.18",
4445
"phpunit/phpunit": "^9.5",

0 commit comments

Comments
 (0)