@@ -102,7 +102,7 @@ abstract class AbstractConnectionResolver {
102102 protected $ ids ;
103103
104104 /**
105- * @var array<string, mixed>
105+ * @var mixed[]
106106 */
107107 protected $ nodes ;
108108
@@ -162,9 +162,9 @@ public function __construct( $source, array $args, AppContext $context, ResolveI
162162 *
163163 * Filters the GraphQL args before they are used in get_query_args().
164164 *
165- * @param array $args The GraphQL args passed to the resolver.
165+ * @param array<string,mixed> $args The GraphQL args passed to the resolver.
166166 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the ConnectionResolver.
167- * @param array $unfiltered_args Array of arguments input in the field as part of the GraphQL query.
167+ * @param array<string,mixed> $unfiltered_args Array of arguments input in the field as part of the GraphQL query.
168168 *
169169 * @since 1.11.0
170170 */
@@ -188,10 +188,9 @@ public function __construct( $source, array $args, AppContext $context, ResolveI
188188 *
189189 * Filters the args
190190 *
191- * @param array $query_args The query args to be used with the executable query to get data.
192- * This should take in the GraphQL args and return args for use in fetching the data.
191+ * @param array<string,mixed> $query_args The query args to be used with the executable query to get data.
193192 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the ConnectionResolver
194- * @param array $unfiltered_args Array of arguments input in the field as part of the GraphQL query.
193+ * @param array<string,mixed> $unfiltered_args Array of arguments input in the field as part of the GraphQL query.
195194 */
196195 $ this ->query_args = apply_filters ( 'graphql_connection_query_args ' , $ this ->get_query_args (), $ this , $ args );
197196 }
@@ -429,11 +428,11 @@ public function get_query_amount() {
429428 *
430429 * This filter is intentionally applied AFTER the query_args filter, as
431430 *
432- * @param int $max_posts the maximum number of posts per page.
433- * @param mixed $source source passed down from the resolve tree
434- * @param array $args array of arguments input in the field as part of the GraphQL query
435- * @param \WPGraphQL\AppContext $context Object containing app context that gets passed down the resolve tree
436- * @param \GraphQL\Type\Definition\ResolveInfo $info Info about fields passed down the resolve tree
431+ * @param int $max_posts the maximum number of posts per page.
432+ * @param mixed $source source passed down from the resolve tree
433+ * @param array<string,mixed> $args array of arguments input in the field as part of the GraphQL query
434+ * @param \WPGraphQL\AppContext $context Object containing app context that gets passed down the resolve tree
435+ * @param \GraphQL\Type\Definition\ResolveInfo $info Info about fields passed down the resolve tree
437436 *
438437 * @since 0.0.6
439438 */
@@ -820,7 +819,7 @@ public function get_edges() {
820819 /**
821820 * Create the edge, pass it through a filter.
822821 *
823- * @param array $edge The edge within the connection
822+ * @param array<string,mixed> $edge The edge within the connection
824823 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the connection resolver class
825824 */
826825 $ edge = apply_filters (
@@ -940,7 +939,7 @@ public function execute_and_get_ids() {
940939 /**
941940 * Filter the connection IDs
942941 *
943- * @param array $ids Array of IDs this connection will be resolving
942+ * @param int[]|string[] $ids Array of IDs this connection will be resolving
944943 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the Connection Resolver
945944 */
946945 $ this ->ids = apply_filters ( 'graphql_connection_ids ' , $ this ->get_ids (), $ this );
@@ -984,15 +983,15 @@ function () {
984983 *
985984 * Filters the nodes in the connection
986985 *
987- * @param array $nodes The nodes in the connection
986+ * @param array<int|string,mixed|\WPGraphQL\Model\Model|null> $nodes The nodes in the connection
988987 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the Connection Resolver
989988 */
990989 $ this ->nodes = apply_filters ( 'graphql_connection_nodes ' , $ this ->get_nodes (), $ this );
991990
992991 /**
993992 * Filters the edges in the connection
994993 *
995- * @param array $nodes The nodes in the connection
994+ * @param array<int|string,mixed|\WPGraphQL\Model\Model|null> $nodes The nodes in the connection
996995 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the Connection Resolver
997996 */
998997 $ this ->edges = apply_filters ( 'graphql_connection_edges ' , $ this ->get_edges (), $ this );
@@ -1015,7 +1014,7 @@ function () {
10151014 *
10161015 * This filter allows additional fields to be returned to the connection resolver
10171016 *
1018- * @param array $connection The connection data being returned
1017+ * @param array<string,mixed> $connection The connection data being returned
10191018 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver The instance of the connection resolver
10201019 */
10211020 return apply_filters ( 'graphql_connection ' , $ connection , $ this );
0 commit comments