diff --git a/.upgrade.yml b/.upgrade.yml index ffc5812cd..6cd73bcf5 100644 --- a/.upgrade.yml +++ b/.upgrade.yml @@ -1285,9 +1285,9 @@ warnings: 'days_between()': message: 'Removed SilverStripe\ORM\FieldType\DBDate->days_between()' 'SilverStripe\Control\Session::get_all()': - message: 'Session can not be access statically and `get_all()` is now called `getAll()' + message: 'Session can not be accessed statically and `get_all()` is now called `getAll()' 'SilverStripe\Control\Session::clear_all()': - message: 'Session can not be access statically and `clear_all()` is now called `clearAll()' + message: 'Session can not be accessed statically and `clear_all()` is now called `clearAll()' props: 'class': message: '$this->class access has been removed' diff --git a/src/Control/Session.php b/src/Control/Session.php index 31f48f3ea..ff143dc83 100644 --- a/src/Control/Session.php +++ b/src/Control/Session.php @@ -9,7 +9,7 @@ use SilverStripe\Dev\Deprecation; /** * Handles all manipulation of the session. * - * An instance of `Session` object can be retrieve via an `HTTPRequest` by calling the `getSession()` method. + * An instance of a `Session` object can be retrieved via an `HTTPRequest` by calling the `getSession()` method. * * In order to support things like testing, the session is associated with a particular Controller. In normal usage, * this is loaded from and saved to the regular PHP session, but for things like static-page-generation and