Skip to content

Commit 993e347

Browse files
authored
interfaces.xml Make the class property truly virtual (#4152)
* interfaces.xml Fix the example error In the footsteps of the issue: #4151 * Update interfaces.xml minimize spaces
1 parent 4806183 commit 993e347

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

language/oop5/interfaces.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ class C2 implements I
154154
// This example creates a virtual property, which is fine.
155155
public string $writeable {
156156
get => $this->written;
157-
set => $value;
157+
set {
158+
$this->written = $value;
159+
}
158160
}
159161
160162
// This property requires both read and write be possible,

0 commit comments

Comments
 (0)