Skip to content

Commit e93acc3

Browse files
authored
Drop PHP 8.0 support (#235)
1 parent 7917e4c commit e93acc3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
coverage: [ 'none' ]
17-
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
17+
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
1818
exclude:
1919
- php-versions: '8.4'
2020
include:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"source": "https://github.com/socialiteproviders/manager"
3535
},
3636
"require": {
37-
"php": "^8.0",
37+
"php": "^8.1",
3838
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0",
3939
"laravel/socialite": "^5.5"
4040
},

src/Helpers/ConfigRetriever.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function fromServices($providerName, array $additionalConfigKeys = [])
4747
$this->getFromServices('client_id'),
4848
$this->getFromServices('client_secret'),
4949
$this->getFromServices('redirect'),
50-
$this->getConfigItems($additionalConfigKeys, fn ($key) => $this->getFromServices(strtolower($key)))
50+
$this->getConfigItems($additionalConfigKeys, fn ($key) => $this->getFromServices(strtolower((string) $key)))
5151
);
5252
}
5353

src/OAuth1/AbstractProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function user()
5555
$user->setToken($tokenCredentials->getIdentifier(), $tokenCredentials->getSecret());
5656

5757
if ($user instanceof User) {
58-
parse_str($token['credentialsResponseBody'], $credentialsResponseBody);
58+
parse_str((string) $token['credentialsResponseBody'], $credentialsResponseBody);
5959

6060
if (! $credentialsResponseBody || ! is_array($credentialsResponseBody)) {
6161
throw new CredentialsException('Unable to parse token credentials response.');

src/OAuth2/AbstractProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ protected function parseApprovedScopes($body)
117117
return $scopesRaw;
118118
}
119119

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

0 commit comments

Comments
 (0)