Skip to content

Commit 6dcb907

Browse files
committed
Fix compat check for 6.6
1 parent f48ccef commit 6dcb907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/web-worker-offloading/tests/test-web-worker-offloading.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function test_update_script_types( Closure $set_up, string $expected ): v
208208

209209
$normalize = static function ( $html ) {
210210
// See <https://core.trac.wordpress.org/ticket/63887>.
211-
if ( class_exists( 'WP_HTML_Tag_Processor' ) ) {
211+
if ( method_exists( 'WP_HTML_Tag_Processor', 'set_modifiable_text' ) ) { // @phpstan-ignore function.alreadyNarrowedType
212212
// This normalization logic is only relevant to WP>=6.9-alpha anyway.
213213
$p = new WP_HTML_Tag_Processor( $html );
214214
while ( $p->next_tag( array( 'tag_name' => 'SCRIPT' ) ) ) {

0 commit comments

Comments
 (0)