- Timestamp:
- 09/11/2025 02:45:56 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/script-modules/wpScriptModules.php
r60704 r60729 876 876 public function test_get_src() { 877 877 $get_src = new ReflectionMethod( $this->script_modules, 'get_src' ); 878 $get_src->setAccessible( true ); 878 if ( PHP_VERSION_ID < 80100 ) { 879 $get_src->setAccessible( true ); 880 } 879 881 880 882 $this->script_modules->register( … … 1351 1353 $reflection_class = new ReflectionClass( $script_modules ); 1352 1354 $registered_property = $reflection_class->getProperty( 'registered' ); 1353 $registered_property->setAccessible( true ); 1355 if ( PHP_VERSION_ID < 80100 ) { 1356 $registered_property->setAccessible( true ); 1357 } 1354 1358 return $registered_property->getValue( $script_modules ); 1355 1359 }
Note: See TracChangeset
for help on using the changeset viewer.