diff --git a/ext/reflection/tests/ReflectionParameter_getSettableType.phpt b/ext/reflection/tests/ReflectionProperty_getSettableType.phpt similarity index 91% rename from ext/reflection/tests/ReflectionParameter_getSettableType.phpt rename to ext/reflection/tests/ReflectionProperty_getSettableType.phpt index caddaeb1ddf..ebf2185c95a 100644 --- a/ext/reflection/tests/ReflectionParameter_getSettableType.phpt +++ b/ext/reflection/tests/ReflectionProperty_getSettableType.phpt @@ -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