18

The same problem which is occuring in this question is happening a lot to me: Warning "Do not Access Superglobal $_POST Array Directly" on Netbeans 7.4 for PHP

However - of course I take care with $_POST and user input etc. but I do this with custom functions which NetBeans does not understand and therefore my IDE is full of warnings.

Another annoying example: "Too many nested blocks in function declaration". Of course you should avoid that, but I think this is not always possible.

How can I disable single warnings in the Netbeans IDE while still keeping all other warnings?

Community
  • 1
  • 1
Blackbam
  • 17,496
  • 26
  • 97
  • 150

1 Answers1

34
  1. Netbeans is not asking you to be careful. Netbeans is asking you to use the filter_input function (PHP 5.2+) to totally replace $_XXYY.

  2. You can switch off individual hint types from Tools > Options dialog. You can also change variables like how many nested blocks is too many:

Editor > Hints > Language: PHP > Nested Blocks / Superglobals

Sheepy
  • 17,324
  • 4
  • 45
  • 69