From a14398b4a3163e05dd1825ca83ec237362f97310 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 15 Nov 2024 15:37:22 -0500 Subject: [PATCH] Update phpdoc related to return value and options for the page preload methods --- wire/core/Page.php | 5 +++-- wire/core/PagesLoader.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wire/core/Page.php b/wire/core/Page.php index b5e10745..933b9f23 100644 --- a/wire/core/Page.php +++ b/wire/core/Page.php @@ -1207,8 +1207,9 @@ class Page extends WireData implements \Countable, WireMatchable { * @param array $fieldNames Names of fields to preload or omit (or blank array) * to preload all supported fields. * @param array $options Options to modify default behavior: - * `debug` (bool): Specify true to return array of debug info (default=false). - * @return int|array Number of fields preloaded, or array of details (if debug) + * - `debug` (bool): Specify true to return additional info in returned array (default=false). + * - See the `PagesLoader::preloadFields()` method for additional options. + * @return array Array of details * @since 3.0.243 * */ diff --git a/wire/core/PagesLoader.php b/wire/core/PagesLoader.php index 0d137534..ce2b24ab 100644 --- a/wire/core/PagesLoader.php +++ b/wire/core/PagesLoader.php @@ -2254,7 +2254,8 @@ class PagesLoader extends Wire { * @param array $options * - `debug` (bool): Specify true to return array of debug info (default=false). * - `skipFieldNames` (array): Optional names of fields to skip over (default=[]). - * @return int|array Number of fields preloaded, or array of details (if debug) + * - See the `PagesLoader::preloadFields()` method for additional options. + * @return array Array of details * @since 3.0.243 * */