更新时间:2022-06-23 22:50:31
While you can't just disable one warning (look for bug reports like http://netbeans.org/bugzilla/show_bug.cgi?id=97224), there is a common solution for this problem(if you have "Ignore assigments in sub-statements" turned ON):
if(($x=$y)) {}
TLDR:双括号=忽略这种类型的警告.
TLDR: Double brackets = Ignore this type of warning.