Skip to content

Commit 9ddd717

Browse files
committed
PEAR/ValidDefaultValue: add test for properties with asymmetric visibility
This sniff already handles this correctly. This commit just updates a test to safeguard this for the future.
1 parent 3cad95b commit 9ddd717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class OnlyConstructorPropertyPromotion {
109109

110110
class ConstructorPropertyPromotionMixedWithNormalParams {
111111
public function __construct(
112-
public string $name = '',
112+
public(set) string $name = '',
113113
?int $optionalParam = 0,
114114
mixed $requiredParam,
115115
) {}

0 commit comments

Comments
 (0)