Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 10c3f6d

Browse files
committed
#8 use short-list syntax instead of array_shift
1 parent 635e0e4 commit 10c3f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BasicAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function authenticate(ServerRequestInterface $request) : ?UserInterface
5858
return null;
5959
}
6060

61-
$authHeader = array_shift($authHeaders);
61+
[$authHeader] = $authHeaders;
6262

6363
if (! preg_match('/Basic (?P<credentials>.+)/', $authHeader, $match)) {
6464
return null;

0 commit comments

Comments
 (0)