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:
@@ -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
|
||||
Reference in New Issue
Block a user