From 2ae8079732d48165a73eb923b530cf8dc433d626 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 26 Sep 2022 22:08:29 +0000 Subject: [PATCH] Docs: Increase the specificity of various property documentation. See #55646 git-svn-id: https://develop.svn.wordpress.org/trunk@54318 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-locale-switcher.php | 2 +- src/wp-includes/class-wp-object-cache.php | 2 +- src/wp-includes/class-wp-post-type.php | 4 ++-- src/wp-includes/class-wp-rewrite.php | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/wp-includes/class-wp-locale-switcher.php b/src/wp-includes/class-wp-locale-switcher.php index 028ad48d55..2e498eb3f8 100644 --- a/src/wp-includes/class-wp-locale-switcher.php +++ b/src/wp-includes/class-wp-locale-switcher.php @@ -34,7 +34,7 @@ class WP_Locale_Switcher { * Holds all available languages. * * @since 4.7.0 - * @var array An array of language codes (file names without the .mo extension). + * @var string[] An array of language codes (file names without the .mo extension). */ private $available_languages = array(); diff --git a/src/wp-includes/class-wp-object-cache.php b/src/wp-includes/class-wp-object-cache.php index 6ca91a34fd..cd84b17753 100644 --- a/src/wp-includes/class-wp-object-cache.php +++ b/src/wp-includes/class-wp-object-cache.php @@ -52,7 +52,7 @@ class WP_Object_Cache { * List of global cache groups. * * @since 3.0.0 - * @var array + * @var string[] */ protected $global_groups = array(); diff --git a/src/wp-includes/class-wp-post-type.php b/src/wp-includes/class-wp-post-type.php index ab9fccc681..35c4e52d20 100644 --- a/src/wp-includes/class-wp-post-type.php +++ b/src/wp-includes/class-wp-post-type.php @@ -222,7 +222,7 @@ final class WP_Post_Type { * Default empty array. * * @since 4.6.0 - * @var array $taxonomies + * @var string[] $taxonomies */ public $taxonomies = array(); @@ -282,7 +282,7 @@ final class WP_Post_Type { * @link https://developer.wordpress.org/block-editor/developers/block-api/block-templates/ * * @since 5.0.0 - * @var array $template + * @var array[] $template */ public $template = array(); diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php index a20de7128e..c5ba216f27 100644 --- a/src/wp-includes/class-wp-rewrite.php +++ b/src/wp-includes/class-wp-rewrite.php @@ -185,7 +185,7 @@ class WP_Rewrite { * Rewrite rules to match against the request to find the redirect or query. * * @since 1.5.0 - * @var array + * @var string[] */ public $rules; @@ -195,7 +195,7 @@ class WP_Rewrite { * Those not generated by the class, see add_rewrite_rule(). * * @since 2.1.0 - * @var array + * @var string[] */ public $extra_rules = array(); @@ -205,7 +205,7 @@ class WP_Rewrite { * Those not generated by the class, see add_rewrite_rule(). * * @since 2.3.0 - * @var array + * @var string[] */ public $extra_rules_top = array(); @@ -216,7 +216,7 @@ class WP_Rewrite { * and are added by add_external_rule(). * * @since 2.1.0 - * @var array + * @var string[] */ public $non_wp_rules = array(); @@ -224,7 +224,7 @@ class WP_Rewrite { * Extra permalink structures, e.g. categories, added by add_permastruct(). * * @since 2.1.0 - * @var array + * @var array[] */ public $extra_permastructs = array(); @@ -232,7 +232,7 @@ class WP_Rewrite { * Endpoints (like /trackback/) added by add_rewrite_endpoint(). * * @since 2.1.0 - * @var array + * @var array[] */ public $endpoints;