Which inspection controls missing parameter type in function definintions?
Answered
I understand by the shape of the variable that each of those are arrays, how do I disable this inspection? Thanks.
Please sign in to leave a comment.
Move the cursor over the warning, hit Alt+Enter (Opt+Return on Mac), then right arrow > disable inspection. Like this: https://i.gyazo.com/40dae037631fb103fae2522fbaf5bb42.mp4
When I do that the only options are to add the 'array' word to the function definition to "Fix" it but I'm trying to disable the warning because I don't want to fix it. For me the options are these:
--edit--
With the cursor on the DocBlock variable I get different options but still no disable warning option, only the add option.
Sorry, did you check the video I've linked? When you have a popup with "Add 'array' as the parameter's type", hit right arrow on a keyboard - a new submenu would open where you can disable the inspection.
Thanks Dmitry, That did fix it, I thought it didn't because it took a long time for the ~~~~~~ to disappear.
Fixed for me now. Thanks very much.
Great, you're welcome!