PHP OpenAPI: how to indicate a set of objects?

Hi,

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

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

0

Please sign in to leave a comment.