Skip to content

Commit

Permalink
Drop PHP 8.0 support (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Jan 3, 2025
1 parent 7917e4c commit e93acc3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
coverage: [ 'none' ]
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
exclude:
- php-versions: '8.4'
include:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"source": "https://github.com/socialiteproviders/manager"
},
"require": {
"php": "^8.0",
"php": "^8.1",
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"laravel/socialite": "^5.5"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/ConfigRetriever.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function fromServices($providerName, array $additionalConfigKeys = [])
$this->getFromServices('client_id'),
$this->getFromServices('client_secret'),
$this->getFromServices('redirect'),
$this->getConfigItems($additionalConfigKeys, fn ($key) => $this->getFromServices(strtolower($key)))
$this->getConfigItems($additionalConfigKeys, fn ($key) => $this->getFromServices(strtolower((string) $key)))
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/OAuth1/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function user()
$user->setToken($tokenCredentials->getIdentifier(), $tokenCredentials->getSecret());

if ($user instanceof User) {
parse_str($token['credentialsResponseBody'], $credentialsResponseBody);
parse_str((string) $token['credentialsResponseBody'], $credentialsResponseBody);

if (! $credentialsResponseBody || ! is_array($credentialsResponseBody)) {
throw new CredentialsException('Unable to parse token credentials response.');
Expand Down
2 changes: 1 addition & 1 deletion src/OAuth2/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ protected function parseApprovedScopes($body)
return $scopesRaw;
}

return explode($this->scopeSeparator, Arr::get($body, 'scope', ''));
return explode($this->scopeSeparator, (string) Arr::get($body, 'scope', ''));
}
}

0 comments on commit e93acc3

Please sign in to comment.