From e80f1b2b837d627ede528e44186a4fdd2b739f0d Mon Sep 17 00:00:00 2001 From: Matt Clegg Date: Tue, 31 Mar 2020 18:20:21 +0545 Subject: [PATCH] [DOCS] Member::logInAs is not a valid example Member::logInAs doesn't exist as a static function. Additionally, `logInAs` does exist as a function in SapphireTest.php, so, should this be updated to also use `Member::actAs` for consistency? --- src/Security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Member.php b/src/Security/Member.php index 76e651dc5..8dac92d6a 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -790,7 +790,7 @@ class Member extends DataObject * * E.g. * - * Member::logInAs(Security::findAnAdministrator(), function() { + * Member::actAs(Security::findAnAdministrator(), function() { * $record->write(); * }); *