Skip to content

Commit b541af1

Browse files
Another ReflectionProperty::isFinal() case
1 parent 6475a39 commit b541af1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/reflection/tests/ReflectionProperty_isFinal.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class C {
1313
public private(set) mixed $p7;
1414
public private(set) final mixed $p8;
1515

16-
public function __construct( final $p9 ) {}
16+
public function __construct( final $p9, public $p10 ) {}
1717
}
1818

1919
$rc = new ReflectionClass(C::class);
@@ -33,3 +33,4 @@ p6: bool(true)
3333
p7: bool(true)
3434
p8: bool(true)
3535
p9: bool(true)
36+
p10: bool(false)

0 commit comments

Comments
 (0)