Skip to content

Commit d7ace09

Browse files
committed
fix array_get
1 parent 6c26044 commit d7ace09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
],
1111
"require": {
1212
"php": ">=5.5.9",
13-
"illuminate/support": "5.*|6.*",
14-
"laravel/socialite": "^3.0|^4.0",
13+
"illuminate/support": "6.*",
14+
"laravel/socialite": "^4.0",
1515
"knplabs/github-api": "^2.9",
1616
"php-http/guzzle6-adapter": "^1.1",
1717
"graham-campbell/github": "^8.6"

src/GitHubAuthCore/GitHubAuthService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Support\Facades\Cache;
77
use Illuminate\Support\Facades\Log;
88
use Laravel\Socialite\Facades\Socialite;
9-
use Http\Adapter\Guzzle6\Client as GuzzleClient;
9+
use Illuminate\Support\Arr;
1010
use GrahamCampbell\GitHub\Facades\GitHub;
1111
use Mockery\CountValidator\Exception;
1212
use Friendsofcat\GitHubTeamAuth\Organization;
@@ -184,7 +184,7 @@ private function dbTeamsExist()
184184
*/
185185
private function verifyPermissionResponse($response_body)
186186
{
187-
if (array_get($response_body, 'state', null) !== "active") {
187+
if (Arr::get($response_body, 'state', null) !== "active") {
188188
throw new \Exception("The user is not active in the git team");
189189
}
190190
}

0 commit comments

Comments
 (0)