From 05cdb4d17ef76e8500633f137ed94b08b8b90136 Mon Sep 17 00:00:00 2001 From: YJ Tso Date: Mon, 13 Jan 2020 13:58:47 -0800 Subject: [PATCH] further detail on ResultPager parameters Previously it was non-obvious how parameters were passed to called methods. --- doc/result_pager.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/result_pager.md b/doc/result_pager.md index 1147674edcc..3eb0a115f5f 100644 --- a/doc/result_pager.md +++ b/doc/result_pager.md @@ -21,6 +21,12 @@ Parameters of the `fetchAll` method: * The method of the API object you're using * The parameters of the method +Parameters are passed to the API method via [call_user_func_array](https://www.php.net/manual/en/function.call-user-func-array.php). + +```php +$parameters = array('github', 'all', 1); // $organization, $type, $page +``` + #### Get the first page ```php