Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/wp-includes/blocks/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,8 @@ private static function get_responsive_container_classes( $is_hidden_by_default,
*
* @since 7.0.0
*
* @param array $colors The colors array.
* @param bool $has_custom_overlay Whether a custom overlay is used.
* @param array $colors The colors array.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're touching the docblock here, we should take the opportunity to provide the full PHPStan typing for this param. So this could be done by adding another tag at the bottom of the docblock:

* @phpstan-param array{
*     overlay_inline_styles: string,
* } $colors

* @return string Returns the overlay inline styles.
*/
private static function get_overlay_inline_styles( $has_custom_overlay, $colors ) {
Expand Down
Loading