diff --git a/tests/privacy_provider_test.php b/tests/privacy_provider_test.php index 90fa010..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);