noverify icon indicating copy to clipboard operation
noverify copied to clipboard

Handle isset/instanceof inside while cond as in if cond

Open quasilyte opened this issue 5 years ago • 0 comments

Code Example

while (isset($x)) {
  // use of $x inside a loop
}

Actual Behavior

Warning about undefined $x.

Expected Behavior

No warnings.

instanceof also doesn't work inside while (COND) context.

quasilyte avatar Oct 19 '19 18:10 quasilyte