Skip to content

Commit 51dd197

Browse files
authored
PHP 8.2 fix (#263)
1 parent 948b290 commit 51dd197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/Linkedin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function getEmailAddress(string $token): array
7070
],
7171
]);
7272

73-
return $this->fromJsonBody($response)['elements.0.handle~'] ?? [];
73+
return $this->fromJsonBody($response)['elements'][0]['handle~'] ?? [];
7474
}
7575

7676
protected function mapUserToObject(array $user): Contracts\UserInterface

0 commit comments

Comments
 (0)