I have a case with a simple syntax error. It goes like this
class Foo
{
public function __construct($a,$b,$c,) {...}
So, there is an syntax error after param $c -- an excess comma (im using php7.3).
When i run psalm
./vendor/bin/psalm src/Foo.php --no-cache
it shows that nothing is broken here.
My question is am i missing some config or something else, why do psalm do not catch that simple syntax error case?