是否可以检测 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 conditions
内 PHP
文件的变量分配?
Settings/Preferences | Editor | Inspections
PHP | Probable bugs
Assignment in condition
是否可以在 PhpStorm 中检测 if conditions
内的变量分配?
if($gooditems = $items){
// will result to always true
// we don't want that
}
如果没有,是否有第 3 方方法来检测 if conditions
内 PHP
文件的变量分配?
Settings/Preferences | Editor | Inspections
PHP | Probable bugs
Assignment in condition