1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Apply string to class constant

Signed-off-by: peter279k <peter279k@gmail.com>
This commit is contained in:
peter279k 2023-10-13 15:27:32 +08:00
parent 81610e3962
commit 13c09921a0
No known key found for this signature in database
GPG Key ID: 8D816CD437F923AF
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);