Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit ca62d9b

Browse files
committed
🚿
1 parent ba966e5 commit ca62d9b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/provider-example-common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @copyright 2019 smiley
66
* @license MIT
77
*
8-
* @phan-file-suppress PhanUndeclaredClassMethod
8+
* @phan-file-suppress PhanUndeclaredClassMethod, PhanInvalidCommentForDeclarationType
99
*/
1010

1111
namespace chillerlan\OAuthExamples;

src/Steam/SteamOpenID.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
use chillerlan\OAuth\Core\{AccessToken, OAuthProvider, ProviderException};
1818
use Psr\Http\Message\{RequestInterface, ResponseInterface, UriInterface};
1919

20-
use function explode, intval, parse_url, preg_replace, strpos;
20+
use function explode, intval, preg_replace, strpos;
2121

22-
use const PHP_URL_QUERY;
2322

2423
/**
2524
* @method \Psr\Http\Message\ResponseInterface playerServiceGetBadges(array $params = ['steamid'])
@@ -151,7 +150,7 @@ public function getRequestAuthorization(RequestInterface $request, AccessToken $
151150
$params = ['key' => $this->options->secret];
152151

153152
// the steamid parameter does not necessarily specify the current user, so add it only when it's not already set
154-
if(strpos(parse_url($uri, PHP_URL_QUERY), 'steamid=') === false){ // php8: str_contains
153+
if(strpos($uri, 'steamid=') === false){ // php8: str_contains
155154
$params['steamid']= $token->accessToken;
156155
}
157156

0 commit comments

Comments
 (0)