Make WordPress Core


Ignore:
Timestamp:
09/11/2025 09:08:27 PM (11 months ago)
Author:
swissspidy
Message:

Code Modernization: Fix setAccessible() PHP version comparison in two instances.

Follow-up to [60729].

See #63956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/wpThemeJson.php

    r60729 r60731  
    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                }
     
    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                }
Note: See TracChangeset for help on using the changeset viewer.