Skip to content

Commit d60113a

Browse files
committed
drop setAccessible calls as they its NOOP since PHP 8.1
1 parent 3f3327e commit d60113a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/TwoFactorAuthTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public function testKnownBase32DecodeTestVectors(): void
127127
$tfa = new TwoFactorAuth('Test');
128128

129129
$method = new ReflectionMethod(TwoFactorAuth::class, 'base32Decode');
130-
$method->setAccessible(true);
131130

132131
// Test vectors from: https://tools.ietf.org/html/rfc4648#page-12
133132
$this->assertSame('', $method->invoke($tfa, ''));
@@ -148,7 +147,6 @@ public function testKnownBase32DecodeUnpaddedTestVectors(): void
148147
$tfa = new TwoFactorAuth('Test');
149148

150149
$method = new ReflectionMethod(TwoFactorAuth::class, 'base32Decode');
151-
$method->setAccessible(true);
152150

153151
// Test vectors from: https://tools.ietf.org/html/rfc4648#page-12
154152
$this->assertSame('', $method->invoke($tfa, ''));

0 commit comments

Comments
 (0)