Skip to content

Commit 85fa983

Browse files
committed
Add ReflectionProperty::getSettableType() test for get-only backed property
Fix test name while we're at it.
1 parent 2e9cc9b commit 85fa983

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/reflection/tests/ReflectionParameter_getSettableType.phpt renamed to ext/reflection/tests/ReflectionProperty_getSettableType.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class Test {
3535
get => $this->backedTyped;
3636
set(int|string $value) => (int) $value;
3737
}
38+
39+
public int $backedTypedGetOnly {
40+
get => $this->backedTypedGetOnly;
41+
}
3842
}
3943

4044
$reflectionClass = new ReflectionClass(Test::class);
@@ -53,3 +57,4 @@ string|int
5357
NULL
5458
int
5559
string|int
60+
int

0 commit comments

Comments
 (0)