How to supress a warning in PHP files for Netbeans?

前端 未结 3 1081
误落风尘
误落风尘 2020-12-21 14:41

I have a PHP file with a line that produces a warning in the NetBeans. How can I force the IDE to ignore that concrete warning? Notice that I don\'t want to disable

3条回答
  •  攒了一身酷
    2020-12-21 15:28

    You can control the hints/warnings that NetBeans provides through Tools > Options > Editor > Hints. You can turn off this specific hint by choosing Language: PHP and unselecting the "Possible accidental assignment, assignments in conditions should be avoided" checkbox.

    You should however heed the advise of the other answers and reconsider this style.

提交回复
热议问题