Wulfheart / laravel-actions-ide-helper

MIT License
18 stars 26 forks source link

Add support for more types (union & intersection) and docblock merging #5

Closed brecht-vermeersch closed 2 years ago

brecht-vermeersch commented 2 years ago

I rewrote the docblock logic to better support testing, more types (like union and intersection types) and merging signature types (all the build in stuff) with docblock types.

The logic for merging docblocks with signature works as follows

The factories return an array of Methods (phpDocumentor\Reflection\DocBlock package) for the provided class. In the future these could be used for actions.

This code currently isn't used anywhere, but you can test it with the test command. I will add tests soon.

Wulfheart commented 2 years ago

Thanks for your contribution! However, I just published a new version with additional tests and I think it should cover your use cases. Feel free to open an issue if you encounter any issues.