1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Add ReflectionProperty::getSettableType() test for get-only backed property

Fix test name while we're at it.
This commit is contained in:
Ilija Tovilo
2024-08-02 17:46:38 +02:00
parent 2e9cc9bc30
commit 85fa983fe6

View File

@@ -35,6 +35,10 @@ class Test {
get => $this->backedTyped;
set(int|string $value) => (int) $value;
}
public int $backedTypedGetOnly {
get => $this->backedTypedGetOnly;
}
}
$reflectionClass = new ReflectionClass(Test::class);
@@ -53,3 +57,4 @@ string|int
NULL
int
string|int
int