diff --git a/src/wp-includes/Requests/src/Requests.php b/src/wp-includes/Requests/src/Requests.php index 556b06e0a385e..daece7a2a2f44 100644 --- a/src/wp-includes/Requests/src/Requests.php +++ b/src/wp-includes/Requests/src/Requests.php @@ -601,7 +601,7 @@ public static function request_multiple($requests, $options = []) { * Get the default options * * @see \WpOrg\Requests\Requests::request() for values returned by this method - * @param boolean $multirequest Is this a multirequest? + * @param bool $multirequest Is this a multirequest? * @return array Default option values */ protected static function get_default_options($multirequest = false) { diff --git a/src/wp-includes/Requests/src/Response.php b/src/wp-includes/Requests/src/Response.php index 86a0438bad54f..c37d9b20c10ed 100644 --- a/src/wp-includes/Requests/src/Response.php +++ b/src/wp-includes/Requests/src/Response.php @@ -114,7 +114,7 @@ public function is_redirect() { /** * Throws an exception if the request was not successful * - * @param boolean $allow_redirects Set to false to throw on a 3xx as well + * @param bool $allow_redirects Set to false to throw on a 3xx as well * * @throws \WpOrg\Requests\Exception If `$allow_redirects` is false, and code is 3xx (`response.no_redirects`) * @throws \WpOrg\Requests\Exception\Http On non-successful status code. Exception class corresponds to "Status" + code (e.g. {@see \WpOrg\Requests\Exception\Http\Status404}) diff --git a/src/wp-includes/Requests/src/Session.php b/src/wp-includes/Requests/src/Session.php index 0a63279022e74..818194824256b 100644 --- a/src/wp-includes/Requests/src/Session.php +++ b/src/wp-includes/Requests/src/Session.php @@ -273,7 +273,7 @@ public function __wakeup() { * Merge a request's data with the default data * * @param array $request Request data (same form as {@see \WpOrg\Requests\Session::request_multiple()}) - * @param boolean $merge_options Should we merge options as well? + * @param bool $merge_options Should we merge options as well? * @return array Request data */ protected function merge_request($request, $merge_options = true) { diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 2c1cf07d160cd..30312109400d6 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -2384,12 +2384,12 @@ protected static function flatten_tree( $tree, $prefix = '', $token = '--' ) { * @since 6.6.0 Pass current theme JSON settings to wp_get_typography_font_size_value(), and process background properties. * @since 6.7.0 `ref` resolution of background properties, and assigning custom default values. * - * @param array $styles Styles to process. - * @param array $settings Theme settings. - * @param array $properties Properties metadata. - * @param array $theme_json Theme JSON array. - * @param string $selector The style block selector. - * @param boolean $use_root_padding Whether to add custom properties at root level. + * @param array $styles Styles to process. + * @param array $settings Theme settings. + * @param array $properties Properties metadata. + * @param array $theme_json Theme JSON array. + * @param string $selector The style block selector. + * @param bool $use_root_padding Whether to add custom properties at root level. * @return array Returns the modified $declarations. */ protected static function compute_style_properties( $styles, $settings = array(), $properties = null, $theme_json = null, $selector = null, $use_root_padding = null ) { diff --git a/src/wp-includes/global-styles-and-settings.php b/src/wp-includes/global-styles-and-settings.php index 4b08301f9c7db..4448e34c3290c 100644 --- a/src/wp-includes/global-styles-and-settings.php +++ b/src/wp-includes/global-styles-and-settings.php @@ -497,7 +497,7 @@ function wp_get_theme_data_template_parts() { * * @param WP_Block_Type $block_type The block's type. * @param string|array $target The desired selector's target, `root` or array path. - * @param boolean $fallback Whether to fall back to broader selector. + * @param bool $fallback Whether to fall back to broader selector. * * @return string|null CSS selector or `null` if no selector available. */ diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 8f6ec1cef4e26..9f6120ad606ed 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2039,7 +2039,7 @@ function wp_img_tag_add_auto_sizes( string $image ): string { * * @since 6.7.1 * - * @param boolean $enabled Whether auto-sizes for lazy loaded images is enabled. + * @param bool $enabled Whether auto-sizes for lazy loaded images is enabled. */ if ( ! apply_filters( 'wp_img_tag_add_auto_sizes', true ) ) { return $image; @@ -6446,4 +6446,3 @@ function wp_get_image_editor_output_format( $filename, $mime_type ) { */ return apply_filters( 'image_editor_output_format', $output_format, $filename, $mime_type ); } - diff --git a/tests/phpunit/tests/block-supports/aria-label.php b/tests/phpunit/tests/block-supports/aria-label.php index 93666ba0fb493..f03524e0d4a4c 100644 --- a/tests/phpunit/tests/block-supports/aria-label.php +++ b/tests/phpunit/tests/block-supports/aria-label.php @@ -51,9 +51,9 @@ private function register_aria_label_block_with_support( $block_name, $supports * * @dataProvider data_aria_label_block_support * - * @param boolean|array $support Aria label block support configuration. - * @param string $value Aria label value for attribute object. - * @param array $expected Expected aria-label attributes. + * @param bool|array $support Aria label block support configuration. + * @param string $value Aria label value for attribute object. + * @param array $expected Expected aria-label attributes. */ public function test_wp_apply_aria_label_support( $support, $value, $expected ) { $block_type = self::register_aria_label_block_with_support( diff --git a/tests/phpunit/tests/block-supports/shadow.php b/tests/phpunit/tests/block-supports/shadow.php index c925bb2f43fe4..fb0b31dfdfe36 100644 --- a/tests/phpunit/tests/block-supports/shadow.php +++ b/tests/phpunit/tests/block-supports/shadow.php @@ -55,9 +55,9 @@ private function register_shadow_block_with_support( $block_name, $supports = ar * * @dataProvider data_generate_shadow_fixtures * - * @param boolean|array $support Shadow block support configuration. - * @param string $value Shadow style value for style attribute object. - * @param array $expected Expected shadow block support styles. + * @param bool|array $support Shadow block support configuration. + * @param string $value Shadow style value for style attribute object. + * @param array $expected Expected shadow block support styles. */ public function test_wp_apply_shadow_support( $support, $value, $expected ) { $block_type = self::register_shadow_block_with_support(