From e17d209d120a1585d68455d2527939ae34d4f50b Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 5 Sep 2020 23:48:17 +0200 Subject: [PATCH] Fix ArgumentTypeCoercion (3x) --- tests/lib/SimpleSAML/Utils/CryptoTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib/SimpleSAML/Utils/CryptoTest.php b/tests/lib/SimpleSAML/Utils/CryptoTest.php index 04346750e..3a7bdb175 100644 --- a/tests/lib/SimpleSAML/Utils/CryptoTest.php +++ b/tests/lib/SimpleSAML/Utils/CryptoTest.php @@ -62,7 +62,7 @@ class CryptoTest extends TestCase } $secret = 'SUPER_SECRET_SALT'; - $m = new ReflectionMethod('\SimpleSAML\Utils\Crypto', 'aesDecryptInternal'); + $m = new ReflectionMethod(Crypto::class, 'aesDecryptInternal'); $m->setAccessible(true); $plaintext = 'SUPER_SECRET_TEXT'; @@ -84,8 +84,8 @@ class CryptoTest extends TestCase } $secret = 'SUPER_SECRET_SALT'; - $e = new ReflectionMethod('\SimpleSAML\Utils\Crypto', 'aesEncryptInternal'); - $d = new ReflectionMethod('\SimpleSAML\Utils\Crypto', 'aesDecryptInternal'); + $e = new ReflectionMethod(Crypto::class, 'aesEncryptInternal'); + $d = new ReflectionMethod(Crypto::class, 'aesDecryptInternal'); $e->setAccessible(true); $d->setAccessible(true); -- GitLab