Fix diff reference

This commit is contained in:
Damian Mooyman 2017-07-14 14:45:08 +12:00 committed by Daniel Hensby
parent 75a6a188e4
commit 844462108e
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -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
<!-- before -->
public static $allowed_actions = [
'suggest'
];
<!-- after -->
private static $allowed_actions = [
```diff
-public static $allowed_actions = [
+private static $allowed_actions = [
'suggest'
];
```