diff --git a/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php b/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php index 69eb3a515720f..ef9401955d052 100644 --- a/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php +++ b/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php @@ -36,7 +36,7 @@ class WP_Style_Engine_CSS_Declarations { * * @since 6.1.0 * - * @param array $declarations An array of declarations (property => value pairs). + * @param string[] $declarations An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ). */ public function __construct( $declarations = array() ) { $this->add_declarations( $declarations ); @@ -73,7 +73,7 @@ public function add_declaration( $property, $value ) { } /** - * Remove a single declaration. + * Removes a single declaration. * * @since 6.1.0 * @@ -103,7 +103,7 @@ public function add_declarations( $declarations ) { } /** - * Remove multiple declarations. + * Removes multiple declarations. * * @since 6.1.0 * @@ -119,7 +119,7 @@ public function remove_declarations( $properties = array() ) { } /** - * Get the declarations array. + * Gets the declarations array. * * @since 6.1.0 * diff --git a/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php b/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php index 76a0a68e6248c..7036790e910db 100644 --- a/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php +++ b/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php @@ -42,9 +42,9 @@ class WP_Style_Engine_CSS_Rule { * * @since 6.1.0 * - * @param string $selector The CSS selector. - * @param array|WP_Style_Engine_CSS_Declarations $declarations An array of declarations (property => value pairs), - * or a WP_Style_Engine_CSS_Declarations object. + * @param string $selector The CSS selector. + * @param string[]|WP_Style_Engine_CSS_Declarations $declarations An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ), + * or a WP_Style_Engine_CSS_Declarations object. */ public function __construct( $selector = '', $declarations = array() ) { $this->set_selector( $selector ); @@ -52,7 +52,7 @@ public function __construct( $selector = '', $declarations = array() ) { } /** - * Set the selector. + * Sets the selector. * * @since 6.1.0 *