#PHP question: is there a way to say in a docblock "this method has the same arguments as this other method" ?
@Crell @jaapio
Let's say I have a method `run(string $foo, int $bar)` on one class and `run(bool $bar)` on another class. I want a `get()` method on a trait that calls the `run` method and automatically passes its arguments to it. Is there a way so that my IDE detects the correct arguments dynamically on `->get` for both classes?
@Crell @jaapio
Here is an example of what I want to achieve
https://gist.github.com/Einenlum/5ca2c823087ff907b9a3e277af8a58c1
@einenlum @Crell it looks like a valid use case for the `@method` annotation. However that forces you to reproduce the function header.
There is no valid syntax to accomplish this, if you read the code without the knowledge of the internals it's pretty unclear what is expected in 'get'. To me this feels like a design flaw which you are trying to fix with a docblocks. Although you might have valid reasons to do this.
In that case, look at the method annotation.
@einenlum I‘m curious about this too. Last time I checked the answer was a No.