diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index f1b29d5b6..259c82385 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -201,6 +201,7 @@ the `SilverStripe\Forms` namespace. If you have some class configuration statics defined and they aren't private, you may find that they don't register anymore. For example, this code, taken from the `silverstripe/tagfield` module will no longer work in SilverStripe 4.0. + ```php public static $allowed_actions = [ 'suggest' @@ -210,13 +211,9 @@ public static $allowed_actions = [ Changing the visibility to `private` (as per `RequestHandler::$allowed_actions` visibility) will make it 4.0 compatible. -```ss - -public static $allowed_actions = [ - 'suggest' -]; - -private static $allowed_actions = [ +```diff +-public static $allowed_actions = [ ++private static $allowed_actions = [ 'suggest' ]; ```