fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

question: is there a way to say in a docblock "this method has the same arguments as this other method" ?

@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

@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 oh, could `@see static::run()` do the trick?