use Member::class

This commit is contained in:
Thomas Portelange 2023-06-23 09:35:34 +02:00 committed by GitHub
parent 2e73b5eeca
commit 9391e696bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ class SessionAuthenticationHandler implements AuthenticationHandler
return null; return null;
} }
/** @var Member $member */ /** @var Member $member */
$member = DataObject::get_by_id("SilverStripe\\Security\\Member", $id); $member = DataObject::get_by_id(Member::class, $id);
return $member; return $member;
} }