Skip to content

Commit

Permalink
Merge pull request #139 from peter279k/string_class_cont
Browse files Browse the repository at this point in the history
Apply string to class constant
  • Loading branch information
deathiop authored Jan 2, 2024
2 parents a5241f8 + 13c0992 commit 2b2095a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/ApiFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function setUp() :void
*/
protected static function getPrivateMethod($name)
{
$class = new \ReflectionClass('Ovh\Api');
$class = new \ReflectionClass(\Ovh\Api::class);
$method = $class->getMethod($name);
$method->setAccessible(true);

Expand All @@ -135,7 +135,7 @@ protected static function getPrivateMethod($name)
*/
protected static function getPrivateProperty($name)
{
$class = new \ReflectionClass('Ovh\Api');
$class = new \ReflectionClass(\Ovh\Api::class);
$property = $class->getProperty($name);
$property->setAccessible(true);

Expand Down
2 changes: 1 addition & 1 deletion tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2b2095a

Please sign in to comment.