Skip to content

How to add type for a argument that has an array as a default value? #8424

Answered by samsonasik
exts asked this question in Q&A
Discussion options

You must be logged in to vote

You can use ArgumentAdderRector, and enable TYPE_DECLARATION set:, see

https://getrector.com/demo/33ae3161-c578-4b54-b601-fe32f304ba48

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by samsonasik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8423 on January 23, 2024 13:20.