Skip to content

Commit 822a6d1

Browse files
authored
remove setAccessible
1 parent 3723fa7 commit 822a6d1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/class-two-factor-core.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ private function do_redirect_callable( $callback ) {
165165
private function reset_profile_errors() {
166166
$reflection = new ReflectionClass( Two_Factor_Core::class );
167167
$prop = $reflection->getProperty( 'profile_errors' );
168-
$prop->setAccessible( true );
169168
$prop->setValue( null, array() );
170169
}
171170

@@ -2371,7 +2370,6 @@ public function test_collect_auth_cookie_tokens() {
23712370
// but capture the original value so it can be restored afterward.
23722371
$reflection = new ReflectionClass( Two_Factor_Core::class );
23732372
$prop = $reflection->getProperty( 'password_auth_tokens' );
2374-
$prop->setAccessible( true );
23752373
$original_tokens = $prop->getValue( null );
23762374

23772375
try {

0 commit comments

Comments
 (0)