Skip to content

Commit 38ad58e

Browse files
committed
feature #1431 Update to Symfony 6.4 (javiereguiluz)
This PR was squashed before being merged into the main branch. Discussion ---------- Update to Symfony 6.4 After upgrade, I can't see any direct deprecation in our code. These are the **indirect deprecations**: ``` Remaining indirect deprecation notices (47) 44x: Subscribing to postConnect events is deprecated. Implement a middleware instead. (Connection.php:387 called by Connection.php:452, doctrine/dbal#5784, package doctrine/dbal) 10x in BlogControllerTest::setUp from App\Tests\Controller\Admin 5x in DefaultControllerTest::tearDown from App\Tests\Controller 4x in BlogControllerTest::testNewComment from App\Tests\Controller 2x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command 2x in AddUserCommandTest::testCreateUserInteractive from App\Tests\Command ... 1x: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead. 1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command 1x: The "Monolog\Logger" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Bridge\Monolog\Logger". 1x in AddUserCommandTest::testCreateUserNonInteractive with data set #0 from App\Tests\Command 1x: Subscribing to postConnect events is deprecated. Implement a middleware instead. (Connection.php:387 called by Connection.php:1654, doctrine/dbal#5784, package doctrine/dbal) 1x in UserControllerTest::testEditUser from App\Tests\Controller Other deprecation notices (44) 44x: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:78 called by App_KernelTestDebugContainer.php:816, doctrine/orm#10455, package doctrine/orm) 10x in BlogControllerTest::setUp from App\Tests\Controller\Admin 5x in DefaultControllerTest::tearDown from App\Tests\Controller 4x in BlogControllerTest::testNewComment from App\Tests\Controller 2x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command 2x in AddUserCommandTest::testCreateUserInteractive from App\Tests\Command ... ``` Commits ------- 878b730 Update to Symfony 6.4
2 parents 945a0f2 + 878b730 commit 38ad58e

19 files changed

+1536
-1245
lines changed

.github/workflows/tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
fail-fast: true
1111
PHPUNIT_FLAGS: "-v"
1212
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
13-
SYMFONY_DEPRECATIONS_HELPER: 7
13+
SYMFONY_DEPRECATIONS_HELPER: 17
1414

1515
permissions:
1616
contents: read

composer.json

+33-32
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"license": "MIT",
44
"type": "project",
55
"description": "Symfony Demo Application",
6-
"minimum-stability": "stable",
6+
"minimum-stability": "RC",
77
"prefer-stable": true,
88
"replace": {
99
"symfony/polyfill-php72": "*",
@@ -16,51 +16,52 @@
1616
"php": ">=8.1",
1717
"ext-pdo_sqlite": "*",
1818
"doctrine/dbal": "^3.1",
19-
"doctrine/doctrine-bundle": "^2.8",
20-
"doctrine/doctrine-migrations-bundle": "^3.0",
21-
"doctrine/orm": "^2.11",
19+
"doctrine/doctrine-bundle": "^2.11",
20+
"doctrine/doctrine-migrations-bundle": "^3.3",
21+
"doctrine/orm": "^2.16",
2222
"league/commonmark": "^2.1",
2323
"symfony/apache-pack": "^1.0",
24-
"symfony/asset": "^6.3",
25-
"symfony/console": "^6.3",
26-
"symfony/dotenv": "^6.3",
27-
"symfony/expression-language": "^6.3",
28-
"symfony/flex": "^2.0",
29-
"symfony/form": "^6.3",
30-
"symfony/framework-bundle": "^6.3",
31-
"symfony/html-sanitizer": "^6.3",
32-
"symfony/http-client": "^6.3",
33-
"symfony/intl": "^6.3",
34-
"symfony/mailer": "^6.3",
24+
"symfony/asset": "6.4.*",
25+
"symfony/console": "6.4.*",
26+
"symfony/dotenv": "6.4.*",
27+
"symfony/expression-language": "6.4.*",
28+
"symfony/flex": "^2",
29+
"symfony/form": "6.4.*",
30+
"symfony/framework-bundle": "6.4.*",
31+
"symfony/html-sanitizer": "6.4.*",
32+
"symfony/http-client": "6.4.*",
33+
"symfony/intl": "6.4.*",
34+
"symfony/mailer": "6.4.*",
3535
"symfony/monolog-bundle": "^3.7",
3636
"symfony/polyfill-intl-messageformatter": "^1.12",
37-
"symfony/runtime": "^6.3",
38-
"symfony/security-bundle": "^6.3",
39-
"symfony/string": "^6.3",
40-
"symfony/translation": "^6.3",
41-
"symfony/twig-bundle": "^6.3",
37+
"symfony/runtime": "6.4.*",
38+
"symfony/security-bundle": "6.4.*",
39+
"symfony/stimulus-bundle": "^2.12",
40+
"symfony/string": "6.4.*",
41+
"symfony/translation": "6.4.*",
42+
"symfony/twig-bundle": "6.4.*",
4243
"symfony/ux-live-component": "^2.6",
43-
"symfony/validator": "^6.3",
44-
"symfony/webpack-encore-bundle": "^1.13",
45-
"symfony/yaml": "^6.3",
44+
"symfony/validator": "6.4.*",
45+
"symfony/webpack-encore-bundle": "^2.1",
46+
"symfony/yaml": "6.4.*",
4647
"twig/extra-bundle": "^3.3",
4748
"twig/intl-extra": "^3.3",
4849
"twig/markdown-extra": "^3.3"
4950
},
5051
"require-dev": {
51-
"dama/doctrine-test-bundle": "^7.0",
52-
"doctrine/doctrine-fixtures-bundle": "^3.4",
52+
"dama/doctrine-test-bundle": "^8.0.0-beta5",
53+
"doctrine/doctrine-fixtures-bundle": "4.0.x-dev",
5354
"phpstan/extension-installer": "^1.2",
5455
"phpstan/phpstan": "^1.2",
5556
"phpstan/phpstan-doctrine": "^1.3",
5657
"phpstan/phpstan-symfony": "^1.2",
57-
"symfony/browser-kit": "^6.3",
58-
"symfony/css-selector": "^6.3",
59-
"symfony/debug-bundle": "^6.3",
58+
"symfony/browser-kit": "6.4.*",
59+
"symfony/css-selector": "6.4.*",
60+
"symfony/debug-bundle": "6.4.*",
6061
"symfony/maker-bundle": "^1.36",
61-
"symfony/phpunit-bridge": "^6.3",
62-
"symfony/stopwatch": "^6.3",
63-
"symfony/web-profiler-bundle": "^6.3"
62+
"symfony/phpunit-bridge": "6.4.*",
63+
"symfony/stopwatch": "6.4.*",
64+
"symfony/web-profiler-bundle": "6.4.*"
6465
},
6566
"config": {
6667
"allow-plugins": {
@@ -101,7 +102,7 @@
101102
"extra": {
102103
"symfony": {
103104
"allow-contrib": true,
104-
"require": "6.3.*"
105+
"require": "6.4.*"
105106
}
106107
}
107108
}

0 commit comments

Comments
 (0)