Skip to content

Commit

Permalink
Allow symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
simoheinonen committed Dec 13, 2023
1 parent 8ccde38 commit 125ea52
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- description: 'Symfony 5.*'
php: '8.1'
symfony-versions: '^5.4'
- description: 'Symfony 6.*'
php: '8.1'
symfony-versions: '^6.3'
- description: 'Symfony 7.*'
php: '8.2'
symfony-versions: '^7.0'
name: PHP ${{ matrix.php }} ${{ matrix.description }}
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function addRole($role)
/**
* @return void
*/
public function eraseCredentials()
public function eraseCredentials(): void
{
$this->plainPassword = null;
}
Expand Down
4 changes: 2 additions & 2 deletions Security/UserChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UserChecker implements UserCheckerInterface
/**
* @return void
*/
public function checkPreAuth(BaseUserInterface $user)
public function checkPreAuth(BaseUserInterface $user): void
{
if (!$user->isEnabled()) {
$ex = new DisabledException('User account is disabled.');
Expand All @@ -37,7 +37,7 @@ public function checkPreAuth(BaseUserInterface $user)
/**
* @return void
*/
public function checkPostAuth(BaseUserInterface $user)
public function checkPostAuth(BaseUserInterface $user): void
{
}
}
33 changes: 17 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
"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/event-dispatcher": "^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/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 @@ -49,10 +49,11 @@
"require-dev": {
"doctrine/doctrine-bundle": "^1.3 || ^2",
"friendsofphp/php-cs-fixer": "^3.0.2, !=3.5.0",
"phpunit/phpunit": "^9.0",
"swiftmailer/swiftmailer": "^4.3 || ^5.0 || ^6.0",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/console": "^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

0 comments on commit 125ea52

Please sign in to comment.