是否可以检测 PhpStorm 中 if 条件下的变量分配?

Possible to detect variable assigning inside if conditions in PhpStorm?

是否可以在 PhpStorm 中检测 if conditions 内的变量分配?

if($gooditems = $items){
    // will result to always true
    // we don't want that
}

如果没有,是否有第 3 方方法来检测 if conditionsPHP 文件的变量分配?

  1. Settings/Preferences | Editor | Inspections
  2. PHP | Probable bugs
  3. Assignment in condition