From 6704bbece7103e4b49b4339631d6b5d5daa04eac Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Thu, 15 Jan 2026 15:16:09 -0400 Subject: [PATCH 1/2] Improve comments / fix invalid type comment --- classes/models/FrmForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/models/FrmForm.php b/classes/models/FrmForm.php index d086091a9f..6a9cc263e5 100644 --- a/classes/models/FrmForm.php +++ b/classes/models/FrmForm.php @@ -914,7 +914,7 @@ private static function prepare_form_row_data( $row ) { * @param string $order_by Order by clause. * @param int|string $limit Limit clause or number. * - * @return array|object of objects + * @return array|object Array of objects. If $limit is 1, a single object is returned. */ public static function getAll( $where = array(), $order_by = '', $limit = '' ) { if ( is_array( $where ) && $where ) { @@ -956,7 +956,7 @@ public static function getAll( $where = array(), $order_by = '', $limit = '' ) { * @param int $limit * @param string $inc_children * - * @return array|object of forms A single form object would be passed if $limit was set to 1. + * @return array|object Array of forms. A single form object is returned if $limit is set to 1. */ public static function get_published_forms( $query = array(), $limit = 999, $inc_children = 'exclude' ) { $query['is_template'] = 0; From 172f92e14714e6606e0b5d6fea2f82eccf9837b5 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Thu, 15 Jan 2026 15:19:01 -0400 Subject: [PATCH 2/2] Fix the type comment issue --- classes/models/FrmForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/models/FrmForm.php b/classes/models/FrmForm.php index 6a9cc263e5..841e4b9c1a 100644 --- a/classes/models/FrmForm.php +++ b/classes/models/FrmForm.php @@ -432,9 +432,9 @@ public static function update_fields( $id, $values ) { // phpcs:ignore SlevomatC * * @since 6.7 * - * @param array $field - * @param array $values - * @param array $new_field + * @param object $field + * @param array $values + * @param array $new_field * * @return void */