diff --git a/language/oop5/interfaces.xml b/language/oop5/interfaces.xml index e66208a8df12..c1e185538cc7 100644 --- a/language/oop5/interfaces.xml +++ b/language/oop5/interfaces.xml @@ -164,7 +164,9 @@ class C2 implements I // the default behavior. public string $both { get => $this->all; - set => strtoupper($value); + set { + $this->all = strtoupper($value); + } } } ?>