Having this code:
<?php declare(strict_types=1);
class Foo
{
}
class Bar
{
public Foo $foo;
public Fuu $fuu;
public function F(Fuu $fuu) : ?Fuu
{
return null;
}
}
I discovered that PHP Tools does not underline the unknown type "Fuu" in the line public Fuu $fuu. I does correctly underline both "Fuu" in the public function F(Fuu $fuu) : ?Fuu parameter and return type definition.
My question
Can I somehow configure PHP Tools to recognize and report unknown classes, even as class member variables?