diff --git a/src/AbstractResourceTest.php b/src/AbstractResourceTest.php
index <HASH>..<HASH> 100644
--- a/src/AbstractResourceTest.php
+++ b/src/AbstractResourceTest.php
@@ -64,7 +64,7 @@ abstract class AbstractResourceTest extends TestCase
     protected function generateTypeValues(Type $type, ReflectionProperty $property, string $method, array $jsonTemplate): Generator
     {
         $json = $jsonTemplate;
-        foreach ($type->$method as $typeClass) {
+        foreach ($type->$method() as $typeClass) {
             $methodType = Types::get(constant($typeClass . '::SCALAR'));
             foreach ($methodType->generate(25) as $value) {
                 $json[$property->getName()] = $value;
Call method, it isn't a property