File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function isPublic(): bool {
77
77
return true ;
78
78
}
79
79
80
- if ($ this ->hooks === [] ) {
80
+ if (! $ this ->isPromoted () ) {
81
81
return false ;
82
82
}
83
83
Original file line number Diff line number Diff line change @@ -42,10 +42,13 @@ public function testSetVisibility() {
42
42
$ node = new Param (new Variable ('foo ' ));
43
43
$ node ->flags = Modifiers::PRIVATE_SET ;
44
44
$ this ->assertTrue ($ node ->isPrivateSet ());
45
+ $ this ->assertTrue ($ node ->isPublic ());
45
46
$ node ->flags = Modifiers::PROTECTED_SET ;
46
47
$ this ->assertTrue ($ node ->isProtectedSet ());
48
+ $ this ->assertTrue ($ node ->isPublic ());
47
49
$ node ->flags = Modifiers::PUBLIC_SET ;
48
50
$ this ->assertTrue ($ node ->isPublicSet ());
51
+ $ this ->assertTrue ($ node ->isPublic ());
49
52
}
50
53
51
54
public function testPromotedPropertyWithoutVisibilityModifier (): void {
You can’t perform that action at this time.
0 commit comments