Skip to content

Commit db9654e

Browse files
committed
Code Modernization: Fix setAccessible() PHP version comparison in two instances.
Follow-up to [60729]. See #63956. git-svn-id: https://develop.svn.wordpress.org/trunk@60731 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cc9f966 commit db9654e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/theme/wpThemeJson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ public function test_return_block_node_paths() {
24582458
$theme_json = new ReflectionClass( 'WP_Theme_JSON' );
24592459

24602460
$func = $theme_json->getMethod( 'get_block_nodes' );
2461-
if ( PHP_VERSION_ID < 81000 ) {
2461+
if ( PHP_VERSION_ID < 80100 ) {
24622462
$func->setAccessible( true );
24632463
}
24642464

@@ -2514,7 +2514,7 @@ public function test_return_block_node_paths_with_variations() {
25142514
$theme_json = new ReflectionClass( 'WP_Theme_JSON' );
25152515

25162516
$func = $theme_json->getMethod( 'get_block_nodes' );
2517-
if ( PHP_VERSION_ID < 81000 ) {
2517+
if ( PHP_VERSION_ID < 80100 ) {
25182518
$func->setAccessible( true );
25192519
}
25202520

0 commit comments

Comments
 (0)