scrutinizer-ci / scrutinizer

Legacy repository - archives past feature requests/bug reports
https://scrutinizer-ci.com/docs
140 stars 36 forks source link

Scrutinizer doesn't understand self #393

Closed theofidry closed 7 years ago

theofidry commented 7 years ago

If you take the following piece of code:

class Foo
{
  function withFoo(self $foo) {...}
}

$x = new Foo();
$x->withFoo($x);

You will get an error along the lines:

$x->withFoo($x) is of type object<Foo>, but the function expects a object<self>
schmittjoh commented 7 years ago

Thanks for the report. We do have an internal bug report open for this. I'm closing this one here for the moment.