Skip to content

Commit 263b147

Browse files
committed
Unnecessary null-safe operator
1 parent 76c3846 commit 263b147

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function actionImpersonateWithToken(int $userId, int $prevUserId): ?Respo
378378
if (!$success) {
379379
$this->setFailFlash(Craft::t('app', 'There was a problem impersonating this user.'));
380380
Craft::error(sprintf('%s tried to impersonate userId: %s but something went wrong.',
381-
$userSession->getIdentity()?->username ?? 'Unknown user', $userId), __METHOD__);
381+
$userSession->getIdentity()->username ?? 'Unknown user', $userId), __METHOD__);
382382
return $this->redirect($this->request->getIsCpRequest()
383383
? Request::CP_PATH_LOGIN
384384
: Craft::$app->getConfig()->getGeneral()->getLoginPath() ?? '');

0 commit comments

Comments
 (0)