Zum Inhalt der Seite gehen


#PHP question: is there a way to say in a docblock "this method has the same arguments as this other method" ?
#php
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

Als Antwort auf Larry Garfield

@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?
Als Antwort auf Einenlum

@jaapio I'm pretty sure you can't do that. "see" is never interpreted by the use Autocomplete AFAIK.

Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite stimmst du dieser Verwendung zu. https://inne.city/tos