Skip to content

Commit

Permalink
⚡ Adjust unit test helpers for PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cdosoftei committed Jan 20, 2022
1 parent 9dbc972 commit f868f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public function getMethod(object $object, string $method): object
return $method;
}

public function getPropertyValue(object $object, string $property): mixed
public function getPropertyValue(object $object, string $property)
{
$ref = new ReflectionProperty($object, $property);
$ref->setAccessible(true);

return $ref->getValue($object);
}

public function setPropertyValue(object $object, string $property, mixed $value): void
public function setPropertyValue(object $object, string $property, $value): void
{
$ref = new ReflectionProperty($object, $property);
$ref->setAccessible(true);
Expand Down

0 comments on commit f868f94

Please sign in to comment.