- Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Given the following class:
class Foo { public function __construct(protected(set) int $o) {} } $x = new Foo(42); echo $x->o; // 42When walking over the AST for the constructor, I would expect the promoted parameter to return true for isPublic() on the property, not false. For setting, I can check isPublicSet(), but there is no way to check isPublicGet().
Tested with PHP 8.4
Metadata
Metadata
Assignees
Labels
No labels