noverify icon indicating copy to clipboard operation
noverify copied to clipboard

Dynamic rules are not executed for nodes that are not traversed via Walk

Open quasilyte opened this issue 4 years ago • 0 comments

Given this rule:

$a[count($a)];

We find only 1 issue in the code below:

  if ($tabs[count($tabs)] == "") {
    unset($tabs[count($tabs)]);
  }

This is due to the fact that unset statement handled in a special way by BlockWalker. There are other statements like this, so the issue is more general than just adding the ad-hoc solution to the unset statement handling.

quasilyte avatar Aug 26 '20 10:08 quasilyte