@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?
Larry Garfield
Als Antwort auf Einenlum • • •Are you providing anything in the docblock that's not already in the function signature? Normally the arguments should be just, there.
Otherwise, paging @jaapio
Einenlum
Als Antwort auf Larry Garfield • • •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?
Einenlum
Als Antwort auf Larry Garfield • • •Here is an example of what I want to achieve
gist.github.com/Einenlum/5ca2c…
Cls1.php
GistLarry Garfield
Als Antwort auf Einenlum • • •