Skip to content

Commit b74c90c

Browse files
committed
perf: ⚡ Use dot notation to set array value
1 parent 822d59b commit b74c90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JWTSSOController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ final public function handle(Request $request): ResponseInterface
156156
}
157157

158158
if ($user === null) {
159-
Arr::get($jwt_user, 'attributes')['isEmailConfirmed'] = true;
159+
Arr::set($jwt_user, 'attributes.isEmailConfirmed', true);
160160

161161
$actor = $this->users->findOrFail(1);
162162
$body = [

0 commit comments

Comments
 (0)