Skip to content

Commit e60384d

Browse files
committed
Improve some types
1 parent d27f3cf commit e60384d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/html-api/class-wp-css-complex-selector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function matches( WP_HTML_Processor $processor ): bool {
1616
return true;
1717
}
1818

19-
/** @var array<string> $breadcrumbs */
19+
/** @var string[] */
2020
$breadcrumbs = array_slice( array_reverse( $processor->get_breadcrumbs() ), 1 );
2121
$selectors = array_slice( $this->selectors, 1 );
2222
return $this->explore_matches( $selectors, $breadcrumbs );
@@ -26,7 +26,7 @@ public function matches( WP_HTML_Processor $processor ): bool {
2626
* This only looks at breadcrumbs and can therefore only support type selectors.
2727
*
2828
* @param array<WP_CSS_Compound_Selector|self::COMBINATOR_*> $selectors
29-
* @param array<string> $breadcrumbs
29+
* @param string[] $breadcrumbs
3030
*/
3131
private function explore_matches( array $selectors, array $breadcrumbs ): bool {
3232
if ( array() === $selectors ) {
@@ -36,9 +36,9 @@ private function explore_matches( array $selectors, array $breadcrumbs ): bool {
3636
return false;
3737
}
3838

39-
/** @var self::COMBINATOR_* $combinator */
39+
/** @var self::COMBINATOR_* */
4040
$combinator = $selectors[0];
41-
/** @var WP_CSS_Compound_Selector $selector */
41+
/** @var WP_CSS_Compound_Selector */
4242
$selector = $selectors[1];
4343

4444
switch ( $combinator ) {

0 commit comments

Comments
 (0)