Skip to content

Commit

Permalink
Apply string to class constant
Browse files Browse the repository at this point in the history
Signed-off-by: peter279k <[email protected]>
  • Loading branch information
peter279k committed Oct 13, 2023
1 parent 81610e3 commit 13c0992
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 13c0992

Please sign in to comment.