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
Please sign in to leave a comment.
new PhpType().add("Class[]") does the trick.
I don't know why it didn't work for me the first time.