From ff0e0c77fe0a3f2cf1b95a0a7aae089157c21aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Thu, 29 Aug 2024 17:33:01 +0200 Subject: [PATCH] PHPUnit test was not compatible with PHP ^7.0 --- tests/methods/ParseTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/methods/ParseTest.php b/tests/methods/ParseTest.php index 44ba81d..eae4bec 100644 --- a/tests/methods/ParseTest.php +++ b/tests/methods/ParseTest.php @@ -326,7 +326,7 @@ class ParseTest extends TestCase { * @return mixed Method return. */ private function invokeMethod($object, $methodName, $parameters = []) { - $reflection = new ReflectionClass($object::class); + $reflection = new ReflectionClass(get_class($object)); $method = $reflection->getMethod($methodName); $method->setAccessible(true);