Skip to content

Commit 095260b

Browse files
authored
Merge pull request #3067 from simoheinonen/sf7
Allow Symfony 7
2 parents 289ce2d + 4925caf commit 095260b

File tree

3 files changed

+21
-30
lines changed

3 files changed

+21
-30
lines changed

composer.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
"php": "^7.4 || ^8.0",
2525
"ext-dom": "*",
2626
"ext-json": "*",
27-
"symfony/config": "^4.4 || ^5.0 || ^6.0",
28-
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
27+
"symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0",
28+
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0 || ^7.0",
2929
"symfony/deprecation-contracts": "^2.5 || ^3.5",
30-
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0",
30+
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0 || ^7.0",
3131
"symfony/event-dispatcher-contracts": "^1.1 || ^2.0 || ^3.0",
32-
"symfony/form": "^4.4 || ^5.0 || ^6.0",
33-
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
34-
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0",
35-
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0",
36-
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
37-
"symfony/routing": "^4.4 || ^5.0 || ^6.0",
38-
"symfony/security-bundle": "^4.4 || ^5.0 || ^6.0",
39-
"symfony/security-core": "^4.4 || ^5.0 || ^6.0",
40-
"symfony/translation": "^4.4 || ^5.0 || ^6.0",
41-
"symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0",
42-
"symfony/validator": "^4.4 || ^5.0 || ^6.0",
32+
"symfony/form": "^4.4 || ^5.0 || ^6.0 || ^7.0",
33+
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
34+
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0 || ^7.0",
35+
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0 || ^7.0",
36+
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0 || ^7.0",
37+
"symfony/routing": "^4.4 || ^5.0 || ^6.0 || ^7.0",
38+
"symfony/security-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
39+
"symfony/security-core": "^4.4 || ^5.0 || ^6.0 || ^7.0",
40+
"symfony/translation": "^4.4 || ^5.0 || ^6.0 || ^7.0",
41+
"symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
42+
"symfony/validator": "^4.4 || ^5.0 || ^6.0 || ^7.0",
4343
"twig/twig": "^1.34 || ^2.4 || ^3.0"
4444
},
4545
"conflict": {
@@ -51,11 +51,11 @@
5151
"doctrine/doctrine-bundle": "^1.3 || ^2",
5252
"friendsofphp/php-cs-fixer": "^3.0.2, !=3.5.0",
5353
"swiftmailer/swiftmailer": "^4.3 || ^5.0 || ^6.0",
54-
"symfony/console": "^4.4 || ^5.0 || ^6.0",
55-
"symfony/mailer": "^4.4 || ^5.0 || ^6.0",
56-
"symfony/mime": "^4.4 || ^5.0 || ^6.0",
54+
"symfony/console": "^4.4 || ^5.0 || ^6.0 || ^7.0",
55+
"symfony/mailer": "^4.4 || ^5.0 || ^6.0 || ^7.0",
56+
"symfony/mime": "^4.4 || ^5.0 || ^6.0 || ^7.0",
5757
"symfony/phpunit-bridge": "^6.1",
58-
"symfony/yaml": "^4.4 || ^5.0 || ^6.0"
58+
"symfony/yaml": "^4.4 || ^5.0 || ^6.0 || ^7.0"
5959
},
6060
"config": {
6161
"sort-packages": true

src/Model/User.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ public function addRole($role)
183183
return $this;
184184
}
185185

186-
/**
187-
* @return void
188-
*/
189-
public function eraseCredentials()
186+
public function eraseCredentials(): void
190187
{
191188
$this->plainPassword = null;
192189
}

src/Security/UserChecker.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
*/
2424
class UserChecker implements UserCheckerInterface
2525
{
26-
/**
27-
* @return void
28-
*/
29-
public function checkPreAuth(BaseUserInterface $user)
26+
public function checkPreAuth(BaseUserInterface $user): void
3027
{
3128
if ($user instanceof UserInterface && !$user->isEnabled()) {
3229
$ex = new DisabledException('User account is disabled.');
@@ -35,10 +32,7 @@ public function checkPreAuth(BaseUserInterface $user)
3532
}
3633
}
3734

38-
/**
39-
* @return void
40-
*/
41-
public function checkPostAuth(BaseUserInterface $user)
35+
public function checkPostAuth(BaseUserInterface $user): void
4236
{
4337
}
4438
}

0 commit comments

Comments
 (0)