From f868f94dc9d68986b43bc12dfff652ecbca0dc53 Mon Sep 17 00:00:00 2001 From: cdosoftei Date: Wed, 19 Jan 2022 19:52:05 -0500 Subject: [PATCH] :zap: Adjust unit test helpers for PHP 7.4 --- tests/TestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 6630cc9..5a254ae 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -40,7 +40,7 @@ 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); @@ -48,7 +48,7 @@ public function getPropertyValue(object $object, string $property): mixed 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);