Closed theofidry closed 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>
Thanks for the report. We do have an internal bug report open for this. I'm closing this one here for the moment.
If you take the following piece of code:
You will get an error along the lines: