Skip to content

Commit

Permalink
Upgrade to PHPStan 2
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Dec 20, 2024
1 parent e94c384 commit 9823750
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"league/oauth2-client": "^2.4.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.37.1",
"guzzlehttp/psr7": "^2.6.1",
"friendsofphp/php-cs-fixer": "^3.65.0",
"guzzlehttp/psr7": "^2.7.0",
"http-interop/http-factory-guzzle": "^1.2",
"infection/infection": "^0.27.7",
"m4tthumphrey/php-gitlab-api": "^11.12",
"mockery/mockery": "^1.6.6",
"php-http/guzzle7-adapter": "^1.0.0",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.41",
"phpstan/phpstan-mockery": "^1.1.1",
"phpstan/phpstan-phpunit": "^1.3.15",
"phpunit/phpunit": "^10.4.2"
"infection/infection": "^0.27.11",
"m4tthumphrey/php-gitlab-api": "^11.14",
"mockery/mockery": "^1.6.12",
"php-http/guzzle7-adapter": "^1.1.0",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^2.0.4",
"phpstan/phpstan-mockery": "^2.0.0",
"phpstan/phpstan-phpunit": "^2.0.3",
"phpunit/phpunit": "^10.5.39"
},
"suggest": {
"m4tthumphrey/php-gitlab-api": "For further API usage using the acquired OAuth2 token"
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Gitlab.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function getScopeSeparator(): string
* Check a provider response for errors.
*
* @param ResponseInterface $response Parsed response data
* @param array{error?: string, message?: string}|mixed $data
* @param array{error?: string, message?: string}|scalar $data
* @throws IdentityProviderException
*/
protected function checkResponse(ResponseInterface $response, mixed $data): void
Expand Down
5 changes: 3 additions & 2 deletions test/src/Provider/GitlabTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testAuthorizationUrl(): void
$this->assertArrayHasKey('scope', $query);
$this->assertArrayHasKey('response_type', $query);
$this->assertArrayHasKey('approval_prompt', $query);
$this->assertNotNull($this->provider->getState());
$this->assertNotEmpty($this->provider->getState());
}

public function testScopes(): void
Expand Down Expand Up @@ -224,7 +224,8 @@ public function testDefaultValuesForResourceOwner(): void
public function testApiClient(GitlabResourceOwner $owner): void
{
$client = $owner->getApiClient();
$this->assertInstanceOf(\Gitlab\Client::class, $client);

$this->assertSame(\Gitlab\Client::class, get_class($client));
}

/**
Expand Down

0 comments on commit 9823750

Please sign in to comment.