The reason for this is the missing type context of such call site (related to #96). See the following test case:
<?php
class A {
private function foo() {
echo "foo";
}
public function bar($method) {
$fn = function() use ($method) {
$this->$method();
};
$fn();
}
}
(new A)->bar('foo');
Expected result: foo
Actual result: 'foo' not found
The reason for this is the missing type context of such call site (related to #96). See the following test case:
Expected result:
foo
Actual result:'foo' not found