Skip to content

Commit 52bfa03

Browse files
authored
fix setAccessible
1 parent d16d82c commit 52bfa03

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/providers/class-two-factor-totp.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ public function test_sha512_authenticate() {
454454
*/
455455
private function call_pad_secret( $secret, $length ) {
456456
$method = new ReflectionMethod( 'Two_Factor_Totp', 'pad_secret' );
457+
if ( PHP_VERSION_ID < 80100 ) {
458+
$method->setAccessible( true );
459+
}
457460
return $method->invoke( null, $secret, $length );
458461
}
459462

0 commit comments

Comments
 (0)