@@ -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 }
@@ -430,11 +429,11 @@ public function get_query_amount() {
430429 *
431430 * This filter is intentionally applied AFTER the query_args filter, as
432431 *
433- * @param int $max_posts the maximum number of posts per page.
434- * @param mixed $source source passed down from the resolve tree
435- * @param array $args array of arguments input in the field as part of the GraphQL query
436- * @param \WPGraphQL\AppContext $context Object containing app context that gets passed down the resolve tree
437- * @param \GraphQL\Type\Definition\ResolveInfo $info Info about fields passed down the resolve tree
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<string,mixed> $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
438437 *
439438 * @since 0.0.6
440439 */
@@ -830,7 +829,7 @@ public function get_edges() {
830829 /**
831830 * Create the edge, pass it through a filter.
832831 *
833- * @param array $edge The edge within the connection
832+ * @param array<string,mixed> $edge The edge within the connection
834833 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the connection resolver class
835834 */
836835 $ edge = apply_filters (
@@ -950,7 +949,7 @@ public function execute_and_get_ids() {
950949 /**
951950 * Filter the connection IDs
952951 *
953- * @param array $ids Array of IDs this connection will be resolving
952+ * @param int[]|string[] $ids Array of IDs this connection will be resolving
954953 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the Connection Resolver
955954 */
956955 $ this ->ids = apply_filters ( 'graphql_connection_ids ' , $ this ->get_ids (), $ this );
@@ -994,15 +993,15 @@ function () {
994993 *
995994 * Filters the nodes in the connection
996995 *
997- * @param array $nodes The nodes in the connection
996+ * @param array<int|string,mixed|\WPGraphQL\Model\Model|null> $nodes The nodes in the connection
998997 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the Connection Resolver
999998 */
1000999 $ this ->nodes = apply_filters ( 'graphql_connection_nodes ' , $ this ->get_nodes (), $ this );
10011000
10021001 /**
10031002 * Filters the edges in the connection
10041003 *
1005- * @param array $nodes The nodes in the connection
1004+ * @param array<int|string,mixed|\WPGraphQL\Model\Model|null> $nodes The nodes in the connection
10061005 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver Instance of the Connection Resolver
10071006 */
10081007 $ this ->edges = apply_filters ( 'graphql_connection_edges ' , $ this ->get_edges (), $ this );
@@ -1025,7 +1024,7 @@ function () {
10251024 *
10261025 * This filter allows additional fields to be returned to the connection resolver
10271026 *
1028- * @param array $connection The connection data being returned
1027+ * @param array<string,mixed> $connection The connection data being returned
10291028 * @param \WPGraphQL\Data\Connection\AbstractConnectionResolver $connection_resolver The instance of the connection resolver
10301029 */
10311030 return apply_filters ( 'graphql_connection ' , $ connection , $ this );
0 commit comments