Having this PHP class:
<?php declare(strict_types = 1);
class Foo
{
public int $i;
public int $i;
}
When (accidentally) declaring the same property multiple times, PHP Tools does not underline the second $i as being a duplicate (PHPStan does).
In contrast:
<?php declare(strict_types = 1);
class Foo
{
public function f() : void {}
public function f() : void {}
}
Above, PHP Tools correctly does detect the second declaration of f as an error. (PHPStan does, too).
My suggestion
Could you please also detect and indicate duplicate/multiple properties with the same name as error/warning?