ReflectionDocBlock icon indicating copy to clipboard operation
ReflectionDocBlock copied to clipboard

Include default argument value when argument has no type

Open sforward opened this issue 3 years ago • 1 comments

This PR fixes handling default argument values when the argument has no type specified. In that case the default value is currently omitted.

This notation was already working as expected:

@method void myMethod(string $arg = '')

With this PR this is also correctly handled:

@method void myMethod($arg = '')

sforward avatar Jul 04 '21 19:07 sforward

@jaapio Could you please review this PR?

sforward avatar Oct 22 '21 10:10 sforward

Thanks for providing this PR, I will not merge this because we are replacing the way tags are created. This will include this feature. and allow your use case.

You can follow #343 to see our progress.

jaapio avatar Oct 28 '22 20:10 jaapio