Skip to content

Commit

Permalink
Allow symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
simoheinonen authored and stof committed Jun 24, 2024
1 parent 289ce2d commit 4925caf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 30 deletions.
36 changes: 18 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
"php": "^7.4 || ^8.0",
"ext-dom": "*",
"ext-json": "*",
"symfony/config": "^4.4 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
"symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/deprecation-contracts": "^2.5 || ^3.5",
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0",
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/event-dispatcher-contracts": "^1.1 || ^2.0 || ^3.0",
"symfony/form": "^4.4 || ^5.0 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0",
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
"symfony/routing": "^4.4 || ^5.0 || ^6.0",
"symfony/security-bundle": "^4.4 || ^5.0 || ^6.0",
"symfony/security-core": "^4.4 || ^5.0 || ^6.0",
"symfony/translation": "^4.4 || ^5.0 || ^6.0",
"symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0",
"symfony/validator": "^4.4 || ^5.0 || ^6.0",
"symfony/form": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/routing": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/security-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/security-core": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/translation": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/validator": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"twig/twig": "^1.34 || ^2.4 || ^3.0"
},
"conflict": {
Expand All @@ -51,11 +51,11 @@
"doctrine/doctrine-bundle": "^1.3 || ^2",
"friendsofphp/php-cs-fixer": "^3.0.2, !=3.5.0",
"swiftmailer/swiftmailer": "^4.3 || ^5.0 || ^6.0",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/mailer": "^4.4 || ^5.0 || ^6.0",
"symfony/mime": "^4.4 || ^5.0 || ^6.0",
"symfony/console": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/mailer": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/mime": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/phpunit-bridge": "^6.1",
"symfony/yaml": "^4.4 || ^5.0 || ^6.0"
"symfony/yaml": "^4.4 || ^5.0 || ^6.0 || ^7.0"
},
"config": {
"sort-packages": true
Expand Down
5 changes: 1 addition & 4 deletions src/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ public function addRole($role)
return $this;
}

/**
* @return void
*/
public function eraseCredentials()
public function eraseCredentials(): void
{
$this->plainPassword = null;
}
Expand Down
10 changes: 2 additions & 8 deletions src/Security/UserChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
*/
class UserChecker implements UserCheckerInterface
{
/**
* @return void
*/
public function checkPreAuth(BaseUserInterface $user)
public function checkPreAuth(BaseUserInterface $user): void
{
if ($user instanceof UserInterface && !$user->isEnabled()) {
$ex = new DisabledException('User account is disabled.');
Expand All @@ -35,10 +32,7 @@ public function checkPreAuth(BaseUserInterface $user)
}
}

/**
* @return void
*/
public function checkPostAuth(BaseUserInterface $user)
public function checkPostAuth(BaseUserInterface $user): void
{
}
}

0 comments on commit 4925caf

Please sign in to comment.