My Visual Studio Code shows "undefined method". I want to know is it possible to "fix" it with some VSC settings or maybe there is a PHP solution. I have this
class A
{
public function someMethodA()
{
// ...
}
}
class B extends A implements Bint
{
public function someMethodB()
{
// ...
}
}
interface BInt
{
public function someMethodB();
}
class C
{
public function someMethodC(Bint $b)
{
// VSC shows indefined method
return $b->someMethodA();
}
}
My interface doesn't have someMethodA
, is it possible to "inherit" it from Class A
to get rid of "error"? This class comes from a package, it has no interface and I need to extend it
getStatusCode()
exists, it is public, everything works, but Visual Studio Code cannot understand it