Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Apr 20, 2023
1 parent 8d2325a commit 13be1eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ public function __construct(AuthFactory $auth)
*/
public static function using($guard = null, $field = null)
{
$args = $field === null ? [$guard] : [$guard, $field];

return static::class.':'.implode(',', $args);
return static::class.':'.implode(',', [$guard, $field]);
}

/**
Expand Down

0 comments on commit 13be1eb

Please sign in to comment.