Skip to content

Commit 82fd70a

Browse files
committed
Update PHP docblock in WP_Theme_JSON to include specific type annotations for parameters in the preserve_valid_typed_settings method, enhancing clarity and type safety.
1 parent 311eafb commit 82fd70a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/class-wp-theme-json.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3694,10 +3694,10 @@ protected static function remove_insecure_inner_block_styles( $blocks ) {
36943694
*
36953695
* @since 7.0.0
36963696
*
3697-
* @param array $input Input settings to process.
3698-
* @param array $output Output settings array (passed by reference).
3699-
* @param array $schema Schema to validate against (typically VALID_SETTINGS).
3700-
* @param array $path Current path in the schema (for recursive calls).
3697+
* @param array $input Input settings to process.
3698+
* @param array $output Output settings array (passed by reference).
3699+
* @param array $schema Schema to validate against (typically VALID_SETTINGS).
3700+
* @param array<string|int> $path Current path in the schema (for recursive calls).
37013701
*/
37023702
private static function preserve_valid_typed_settings( $input, &$output, $schema, $path = array() ) {
37033703
foreach ( $schema as $key => $schema_value ) {

0 commit comments

Comments
 (0)