You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-19044: Protected properties must be scoped according to their prototype (abstract parent sets protected(set) with not having grandparent a setter - both inherit from parent)
3
+
--FILE--
4
+
<?php
5
+
6
+
abstractclassGP {
7
+
abstractmixed$foo { get; }
8
+
}
9
+
10
+
abstractclass P extendsGP {
11
+
abstractprotected(set)mixed$foo { get; set; }
12
+
}
13
+
14
+
classC1extends P {
15
+
publicprotected(set)mixed$foo { get => 2; set {} }
GH-19044: Protected properties must be scoped according to their prototype (abstract parent sets protected(set) with not having grandparent a setter - one inherits from grandparent)
3
+
--FILE--
4
+
<?php
5
+
6
+
abstractclassGP {
7
+
abstractmixed$foo { get; }
8
+
}
9
+
10
+
abstractclass P extendsGP {
11
+
abstractprotected(set)mixed$foo { get; set; }
12
+
}
13
+
14
+
classC1extends P {
15
+
publicprotected(set)mixed$foo { get => 2; set {} }
0 commit comments