Skip to content

Commit

Permalink
Allow Symfony 7 (#425)
Browse files Browse the repository at this point in the history
* Allow Symfony 7

* Drop PHPStan dep - we don't use it directly

* Revert "Drop PHPStan dep - we don't use it directly"

This reverts commit 4ee2282.

* Add void return type for eraseCredentials()
  • Loading branch information
bocharsky-bw authored Nov 28, 2023
1 parent b9da3ae commit 7966f17
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
],
"require": {
"php": ">=7.4",
"symfony/framework-bundle": "^4.4|^5.0|^6.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
"symfony/routing": "^4.4|^5.0|^6.0",
"symfony/http-foundation": "^4.4|^5.0|^6.0",
"symfony/framework-bundle": "^4.4|^5.0|^6.0|^7.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0|^7.0",
"symfony/routing": "^4.4|^5.0|^6.0|^7.0",
"symfony/http-foundation": "^4.4|^5.0|^6.0|^7.0",
"league/oauth2-client": "^2.0"
},
"require-dev": {
"league/oauth2-facebook": "^1.1|^2.0",
"symfony/phpunit-bridge": "^5.3.1|^6.0|^7.0",
"symfony/security-guard": "^4.4|^5.0|^6.0|^7.0",
"symfony/yaml": "^4.4|^5.0|^6.0|^7.0",
"phpstan/phpstan": "^0.12"
},
"autoload": {
"psr-4": { "KnpU\\OAuth2ClientBundle\\": "src/" }
},
"autoload-dev": {
"psr-4": { "KnpU\\OAuth2ClientBundle\\Tests\\": "tests/" }
},
"require-dev": {
"league/oauth2-facebook": "^1.1|^2.0",
"symfony/phpunit-bridge": "^5.3.1|^6.0",
"symfony/security-guard": "^4.4|^5.0|^6.0",
"symfony/yaml": "^4.4|^5.0|^6.0",
"phpstan/phpstan": "^0.12"
},
"suggest": {
"symfony/security-guard": "For integration with Symfony's Guard Security layer"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Security/User/OAuthUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getUsername(): string
return $this->username;
}

public function eraseCredentials()
public function eraseCredentials(): void
{
// Do nothing.
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Security/Authenticator/SocialAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getUsername(): string
{
}

public function eraseCredentials()
public function eraseCredentials(): void
{
}

Expand Down

0 comments on commit 7966f17

Please sign in to comment.