I want to do this:
if ($field = myFunction($node, 'field') && $field['value']) {
//do something with $field
}
PHPStorm warns that the $ undefined field after && & even if it was just set. Is it just a PHPStorm rough or is there some reason it really shouldn't work?
source
share