diff --git a/src/Annotator/ControllerAnnotator.php b/src/Annotator/ControllerAnnotator.php index 17840e58..8b184be0 100644 --- a/src/Annotator/ControllerAnnotator.php +++ b/src/Annotator/ControllerAnnotator.php @@ -180,7 +180,7 @@ protected function getPaginationAnnotations(string $content, ?string $primaryMod return []; } - $resultSetInterfaceCollection = GenericString::generate(implode('|', $entities), '\\' . ResultSetInterface::class . '<' . implode('|', $entities) . '>'); + $resultSetInterfaceCollection = GenericString::generate(implode('|', $entities), '\\' . ResultSetInterface::class); $annotations = [AnnotationFactory::createOrFail(MethodAnnotation::TAG, $resultSetInterfaceCollection, 'paginate($object = null, array $settings = [])')];