Skip to content

Commit c817433

Browse files
Nullable tests
1 parent a761347 commit c817433

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/Core/Tokenizers/PHP/NullableVsInlineThenTest.inc

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ class Nullable
44
{
55
/* testNullableReadonlyOnly */
66
readonly ?int $prop;
7+
8+
/* testNullablePrivateSetOnly */
9+
private(set) ?int $prop2;
10+
11+
/* testNullablePublicPrivateSetOnly */
12+
public private(set) ?int $prop3;
713
}
814

915
class InlineThen

tests/Core/Tokenizers/PHP/NullableVsInlineThenTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public static function dataNullable()
5151
{
5252
return [
5353
'property declaration, readonly, no visibility' => ['/* testNullableReadonlyOnly */'],
54+
'property declaration, private set' => ['/* testNullablePrivateSetOnly */'],
55+
'property declaration, public and private set' => ['/* testNullablePublicPrivateSetOnly */'],
5456
];
5557

5658
}//end dataNullable()

0 commit comments

Comments
 (0)