Skip to content

Commit 6507e47

Browse files
committed
General: Fix PHP 8.5 deprecation warning in unit test.
This removes a spurious `echo` from an output buffer callback. Follow-up to [60936]. Props swissspidy, jorbin, westonruter. See #43258. git-svn-id: https://develop.svn.wordpress.org/trunk@60945 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 90fb750 commit 6507e47

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/phpunit/tests/template.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ static function ( string $buffer ) use ( &$filter_args ): string {
577577

578578
$p = WP_HTML_Processor::create_full_parser( $buffer );
579579
while ( $p->next_tag() ) {
580-
echo $p->get_tag() . PHP_EOL;
581580
switch ( $p->get_tag() ) {
582581
case 'HTML':
583582
$p->set_attribute( 'lang', 'es' );

0 commit comments

Comments
 (0)