From 34eab353fcdea84228def1827a0965886f7d483e Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:40:02 +0100 Subject: [PATCH] Ops! --- tests/privacy_provider_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/privacy_provider_test.php b/tests/privacy_provider_test.php index 65a399f..b989a47 100644 --- a/tests/privacy_provider_test.php +++ b/tests/privacy_provider_test.php @@ -65,7 +65,7 @@ protected static function set_property($obj, $name, $value): void { * @param stdClass $obj The object. * @param string $name Name of the method. */ - protected static function get_property($obj, $name): \ReflectionClass { + protected static function get_property($obj, $name): \ReflectionProperty { // Ref: http://stackoverflow.com/questions/18558183/phpunit-mockbuilder-set-mock-object-internal-property ish. $class = new \ReflectionClass($obj); $property = $class->getProperty($name);