-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
<?php
class A {
private string $prop;
}
$a = new A();
\Closure::bind(function () {
$this; // infer $this as A
$this->prop; // can access private, protected, ...
}, $a, $a::class);Drawback: Private properties, private methods should be displayed on the tooltip even if they are accessed in the wrong context.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels