diff --git a/docs/en/reference/shortcodes.md b/docs/en/reference/shortcodes.md index 9140d0552..362215484 100644 --- a/docs/en/reference/shortcodes.md +++ b/docs/en/reference/shortcodes.md @@ -36,8 +36,8 @@ ensure they're casted correctly: :::php class MyObject extends DataObject { - static $db = array('Content' => 'HTMLText'); - static $casting = array('ContentHighlighted' => 'HTMLText'); + private static $db = array('Content' => 'HTMLText'); + private static $casting = array('ContentHighlighted' => 'HTMLText'); public function ContentHighlighted($term) { return str_replace($term, "$term", $this->Content); }