PHP OpenAPI: how to indicate a set of objects?


I'm just trying to write a TypeProvider for a phpstorm-plugin, but I just can't figure out how to build a PHPType object that corresponds to the Annotation "@return MyClass[]" for a method.

Could anyone give me an advice on how to acomplish this?

Thanks in advance

1 comment
Comment actions Permalink

new PhpType().add("Class[]") does the trick.
I don't know why it didn't work for me the first time.


Please sign in to leave a comment.