Skip to content

Commit 4f4c5ae

Browse files
committed
Fix docs and return type on select_all
1 parent 5605942 commit 4f4c5ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ public function get_unsupported_exception() {
657657
* @param string $selector_string Selector string.
658658
* @return Generator<void> A generator pausing on each tag matching the selector.
659659
*/
660-
public function select_all( string $selector_string ): ?Generator {
660+
public function select_all( string $selector_string ): Generator {
661661
$selector = WP_CSS_Selector::from_selectors( $selector_string );
662662
if ( null === $selector ) {
663663
return;
@@ -674,7 +674,7 @@ public function select_all( string $selector_string ): ?Generator {
674674
* Move to the next tag matching the provided CSS selector string.
675675
*
676676
* This method will stop at the next match. To progress through all matches, use
677-
* the `select_all` method.
677+
* the {@see WP_HTML_Processor::select_all()} method.
678678
*
679679
* @example
680680
*

0 commit comments

Comments
 (0)