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.

0
5 comments

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

0

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.

 

0

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.

1

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.

0

Great, you're welcome!

0

Please sign in to leave a comment.