Skip to content

Commit 0c2a0d7

Browse files
authored
Fix typo in example code. (#4153)
1 parent 993e347 commit 0c2a0d7

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
@@ -164,7 +164,9 @@ class C2 implements I
164164
// the default behavior.
165165
public string $both {
166166
get => $this->all;
167-
set => strtoupper($value);
167+
set {
168+
$this->all = strtoupper($value);
169+
}
168170
}
169171
}
170172
?>

0 commit comments

Comments
 (0)