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
No known key found for this signature in database
GPG key ID: 5050C66BFCD1015A

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