From 100efa7e1cfc2187a1826399f378d0c21e0be9c1 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 22 Mar 2018 18:55:20 +0000 Subject: [PATCH] Docs: Document `WP_Roles` properties with typed array notation. Props stevenlinx Fixes #38732 See #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@42870 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-roles.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-roles.php b/src/wp-includes/class-wp-roles.php index e696bc9fb9..18b0d55035 100644 --- a/src/wp-includes/class-wp-roles.php +++ b/src/wp-includes/class-wp-roles.php @@ -28,7 +28,7 @@ class WP_Roles { * List of roles and capabilities. * * @since 2.0.0 - * @var array + * @var array[] */ public $roles; @@ -36,7 +36,7 @@ class WP_Roles { * List of the role objects. * * @since 2.0.0 - * @var array + * @var WP_Role[] */ public $role_objects = array(); @@ -44,7 +44,7 @@ class WP_Roles { * List of role names. * * @since 2.0.0 - * @var array + * @var string[] */ public $role_names = array(); @@ -254,7 +254,7 @@ class WP_Roles { * * @since 2.0.0 * - * @return array List of role names. + * @return string[] List of role names. */ public function get_names() { return $this->role_names;