From b5188848387d847766d6de3e67b461dd60ef3252 Mon Sep 17 00:00:00 2001 From: Felipe Date: Thu, 12 Oct 2023 17:10:06 +0200 Subject: [PATCH] fix deprecated functions ConnectionResolver::getArgs is deprecated since version 1.11.0 replace with get_args --- src/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Loader.php b/src/Loader.php index 3d5ad3c..073a4e6 100644 --- a/src/Loader.php +++ b/src/Loader.php @@ -72,13 +72,13 @@ function op_filter_graphql_connection_amount_requested($amount, $resolver) */ static function get_page_size(AbstractConnectionResolver $resolver) { - $args = $resolver->getArgs(); + $args = $resolver->get_args(); return intval($args['where']['offsetPagination']['size'] ?? 0); } static function is_offset_resolver(AbstractConnectionResolver $resolver) { - $args = $resolver->getArgs(); + $args = $resolver->get_args(); return isset($args['where']['offsetPagination']); } @@ -126,7 +126,7 @@ function op_filter_graphql_connection_page_info( ) { $size = self::get_page_size($resolver); $query = $resolver->get_query(); - $args = $resolver->getArgs(); + $args = $resolver->get_args(); $offset = $args['where']['offsetPagination']['offset'] ?? 0; $total = null;