noverify icon indicating copy to clipboard operation
noverify copied to clipboard

Some class-scoped expressions are not analyzed

Open quasilyte opened this issue 5 years ago • 0 comments

Code Example

<?php
class C {
  public static $arr = [
    'key1' => 'something',
    'key2' => 'other_thing',
    'key1' => 'third_thing', // duplicate
  ];
}

Actual Behavior

No warnings.

Expected Behavior

Warning about duplicated array key.

quasilyte avatar Dec 12 '19 09:12 quasilyte