Skip to content

Commit 64c49b5

Browse files
committed
Set to minimum PHP 8.1 Add Symfony 7 support
1 parent 2b26634 commit 64c49b5

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.github/workflows/code_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/checkout@v4
3535
- uses: shivammathur/setup-php@v2
3636
with:
37-
php-version: 8.0
37+
php-version: 8.1
3838
extensions: pdo_sqlite, pdo_mysql, pdo_pgsql
3939
coverage: none
4040

.github/workflows/linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 8.0
18+
php-version: 8.1
1919
extensions: pdo_sqlite, pdo_mysql, pdo_pgsql
2020
coverage: none
2121

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
tests:
88
strategy:
99
matrix:
10-
php:
11-
- 8.0
10+
operating-system: [ ubuntu-latest ]
11+
php-versions: [ '8.1', '8.3' ]
1212

1313
name: Test ${{ matrix.php }}
1414
runs-on: ubuntu-latest

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
{ "name": "Knplabs", "homepage": "http://knplabs.com" }
1212
],
1313
"require": {
14-
"php": ">=8.0",
14+
"php": ">=8.1",
1515
"doctrine/common": "^3.3",
1616
"doctrine/persistence": "^2.5|^3.0",
1717
"doctrine/dbal": "^3.3",
1818
"doctrine/orm": "^2.12",
1919
"doctrine/doctrine-bundle": "^2.7.2",
20-
"symfony/cache": "^5.4|^6.0",
21-
"symfony/dependency-injection": "^5.4|^6.0",
22-
"symfony/http-kernel": "^5.4|^6.0",
23-
"symfony/security-core": "^5.4|^6.0",
24-
"symfony/framework-bundle": "^5.4|^6.0",
25-
"symfony/string": "^5.4|^6.0",
20+
"symfony/cache": "^6.0|^7.0",
21+
"symfony/dependency-injection": "^6.0|^7.0",
22+
"symfony/http-kernel": "^6.0|^7.0",
23+
"symfony/security-bundle": "^6.0|^7.0",
24+
"symfony/framework-bundle": "^6.0|^7.0",
25+
"symfony/string": "^6.0|^7.0",
2626
"symfony/translation-contracts": "^2.4|^3.0",
2727
"nette/utils": "^3.2",
2828
"ramsey/uuid": "^4.2"
@@ -36,7 +36,7 @@
3636
"php-parallel-lint/php-parallel-lint": "^1.3",
3737
"phpstan/phpstan": "^1.7.10",
3838
"phpunit/phpunit": "^9.5",
39-
"rector/rector": "^0.18.5",
39+
"rector/rector": "^1.0.0",
4040
"symplify/easy-coding-standard": "^10.2.9",
4141
"symplify/phpstan-extensions": "^10.2.9",
4242
"phpstan/phpstan-doctrine": "^1.3",

src/Provider/UserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
namespace Knp\DoctrineBehaviors\Provider;
66

77
use Knp\DoctrineBehaviors\Contract\Provider\UserProviderInterface;
8+
use Symfony\Bundle\SecurityBundle\Security;
89
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
9-
use Symfony\Component\Security\Core\Security;
1010

1111
final class UserProvider implements UserProviderInterface
1212
{

tests/config/config_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use Knp\DoctrineBehaviors\Tests\Provider\TestLocaleProvider;
1010
use Knp\DoctrineBehaviors\Tests\Provider\TestUserProvider;
1111
use Psr\Log\Test\TestLogger;
12+
use Symfony\Bundle\SecurityBundle\Security;
1213
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
13-
use Symfony\Component\Security\Core\Security;
1414
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
1515

1616
return static function (ContainerConfigurator $containerConfigurator): void {

0 commit comments

Comments
 (0)