Skip to content

Commit 83c3fb7

Browse files
authored
Change deprecation for 6.0 in current user trait (#40677)
1 parent 18a29a6 commit 83c3fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/src/User/CurrentUserTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait CurrentUserTrait
3232

3333
/**
3434
* Returns the current user, if none is set the identity of the global app
35-
* is returned. This will change in 5.0 and an empty user will be returned.
35+
* is returned. This will change in 6.0 and an empty user will be returned.
3636
*
3737
* @return User
3838
*
@@ -42,7 +42,7 @@ protected function getCurrentUser(): User
4242
{
4343
if (!$this->currentUser) {
4444
@trigger_error(
45-
sprintf('User must be set in %s. This will not be caught anymore in 5.0', __METHOD__),
45+
sprintf('User must be set in %s. This will not be caught anymore in 6.0', __METHOD__),
4646
E_USER_DEPRECATED
4747
);
4848
$this->currentUser = Factory::getApplication()->getIdentity() ?: Factory::getUser();

0 commit comments

Comments
 (0)