From d60113a77a054a67162f30072e0c4d073d5d9aab Mon Sep 17 00:00:00 2001 From: Mark Magyar <14284867+xHeaven@users.noreply.github.com> Date: Sat, 27 May 2023 22:02:10 +0200 Subject: [PATCH] drop setAccessible calls as they its NOOP since PHP 8.1 --- tests/TwoFactorAuthTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/TwoFactorAuthTest.php b/tests/TwoFactorAuthTest.php index 1b1feca..0fa9f11 100644 --- a/tests/TwoFactorAuthTest.php +++ b/tests/TwoFactorAuthTest.php @@ -127,7 +127,6 @@ class TwoFactorAuthTest extends TestCase $tfa = new TwoFactorAuth('Test'); $method = new ReflectionMethod(TwoFactorAuth::class, 'base32Decode'); - $method->setAccessible(true); // Test vectors from: https://tools.ietf.org/html/rfc4648#page-12 $this->assertSame('', $method->invoke($tfa, '')); @@ -148,7 +147,6 @@ class TwoFactorAuthTest extends TestCase $tfa = new TwoFactorAuth('Test'); $method = new ReflectionMethod(TwoFactorAuth::class, 'base32Decode'); - $method->setAccessible(true); // Test vectors from: https://tools.ietf.org/html/rfc4648#page-12 $this->assertSame('', $method->invoke($tfa, ''));