mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add ReflectionProperty::getSettableType() test for get-only backed property
Fix test name while we're at it.
This commit is contained in:
parent
2e9cc9bc30
commit
85fa983fe6
1 changed files with 5 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue