We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa26b8 commit c8f9e24Copy full SHA for c8f9e24
tests/phpunit/tests/abilities-api/wpRegisterAbility.php
@@ -456,7 +456,9 @@ public function test_get_existing_ability() {
456
// Reset the Registry, to ensure it's empty before the test.
457
$registry_reflection = new ReflectionClass( WP_Abilities_Registry::class );
458
$instance_prop = $registry_reflection->getProperty( 'instance' );
459
- $instance_prop->setAccessible( true );
+ if ( PHP_VERSION_ID < 80100 ) {
460
+ $instance_prop->setAccessible( true );
461
+ }
462
$instance_prop->setValue( null, null );
463
464
$result = wp_get_ability( $name );
0 commit comments