From 13c09921a026a885c5806bceb021180880437faf Mon Sep 17 00:00:00 2001 From: peter279k Date: Fri, 13 Oct 2023 15:27:32 +0800 Subject: [PATCH] Apply string to class constant Signed-off-by: peter279k --- tests/ApiFunctionalTest.php | 4 ++-- tests/ApiTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ApiFunctionalTest.php b/tests/ApiFunctionalTest.php index 658a422..3effab8 100644 --- a/tests/ApiFunctionalTest.php +++ b/tests/ApiFunctionalTest.php @@ -119,7 +119,7 @@ class ApiFunctionalTest extends TestCase */ protected static function getPrivateMethod($name) { - $class = new \ReflectionClass('Ovh\Api'); + $class = new \ReflectionClass(\Ovh\Api::class); $method = $class->getMethod($name); $method->setAccessible(true); @@ -135,7 +135,7 @@ class ApiFunctionalTest extends TestCase */ protected static function getPrivateProperty($name) { - $class = new \ReflectionClass('Ovh\Api'); + $class = new \ReflectionClass(\Ovh\Api::class); $property = $class->getProperty($name); $property->setAccessible(true); diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 84b888f..5895be7 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -79,7 +79,7 @@ class ApiTest extends TestCase */ protected static function getPrivateProperty($name) { - $class = new \ReflectionClass('Ovh\Api'); + $class = new \ReflectionClass(\Ovh\Api::class); $property = $class->getProperty($name); $property->setAccessible(true);