Skip to content

Commit a4b9256

Browse files
committed
Symfony 7.0 Update
1 parent 7e5f274 commit a4b9256

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1112
-1626
lines changed

.env

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
###> symfony/framework-bundle ###
22
APP_ENV=dev
3-
APP_SECRET=ad5e9ed11ff896949f234ec07bc075bf
3+
APP_SECRET=c39972d23278f52101c810eea7d5a512
44
###< symfony/framework-bundle ###
55

66
###> app ###
7-
BUSINESS_SHORTNAME=
8-
BUSINESS_FULLNAME=
7+
BUSINESS_NAME=Codeception
98
###< app ###
109

1110
###> doctrine/doctrine-bundle ###

.env.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ APP_ENV=test
22
APP_SECRET='$ecretf0rt3st'
33
DATABASE_URL=sqlite:///%kernel.project_dir%/var/test.db3
44
KERNEL_CLASS='App\Kernel'
5-
SYMFONY_DEPRECATIONS_HELPER=999999
6-
MAILER_DSN=null://null
5+
MAILER_DSN=null://null
6+
SYMFONY_DEPRECATIONS_HELPER=999999

.github/workflows/symfony.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ name: CI
33
on:
44
push:
55
branches:
6-
- '6.4'
6+
- '7.0'
77
pull_request:
88
branches:
9-
- '6.4'
9+
- '7.0'
1010

1111
env:
1212
APP_ENV: test
1313

1414
jobs:
1515
symfony:
16-
name: Symfony 6.4 (PHP ${{ matrix.php-versions }})
16+
name: Symfony 7.0 (PHP ${{ matrix.php-versions }})
1717
runs-on: ubuntu-latest
1818
strategy:
1919
fail-fast: true
2020
matrix:
21-
php-versions: ['8.1', '8.2', '8.3']
21+
php-versions: ['8.2', '8.3']
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v3
@@ -50,10 +50,10 @@ jobs:
5050
run: composer install --no-progress
5151

5252
- name: Update database schema
53-
run: php bin/console d:s:u -f
53+
run: php bin/console doctrine:schema:update --force
5454

5555
- name: Load Doctrine fixtures
56-
run: php bin/console d:f:l -q
56+
run: php bin/console doctrine:fixtures:load --quiet
5757

5858
- name: Run functional tests
5959
run: vendor/bin/codecept run Functional

codeception.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
namespace: App\Tests
2+
support_namespace: Support
23
paths:
34
tests: tests
4-
support: tests/_build/support
5-
data: tests/_build/data
6-
envs: tests/_build/envs
7-
output: tests/_build/output
5+
output: tests/_output
6+
data: tests/Support/Data
7+
support: tests/Support
8+
envs: tests/_envs
89
actor_suffix: Tester
910
extensions:
1011
enabled:
@@ -15,4 +16,4 @@ params:
1516
settings:
1617
shuffle: true
1718
colors: true
18-
report_useless_tests: true
19+
report_useless_tests: true

composer.json

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,46 @@
99
"homepage": "https://medium.com/@ganieves"
1010
}
1111
],
12-
"minimum-stability": "RC",
1312
"require": {
14-
"php": ">=8.1.0",
13+
"php": ">=8.2.0",
1514
"ext-ctype": "*",
1615
"ext-iconv": "*",
17-
"doctrine/annotations": "^2.0",
18-
"doctrine/doctrine-bundle": "^2.6",
16+
"doctrine/doctrine-bundle": "^2.11",
1917
"symfony/apache-pack": "^1.0",
20-
"symfony/console": "6.4.*",
21-
"symfony/dotenv": "6.4.*",
22-
"symfony/flex": "^2.1",
23-
"symfony/form": "6.4.*",
24-
"symfony/framework-bundle": "6.4.*",
25-
"symfony/mailer": "6.4.*",
26-
"symfony/runtime": "6.4.*",
27-
"symfony/security-bundle": "6.4.*",
28-
"symfony/translation": "6.4.*",
29-
"symfony/validator": "6.4.*",
30-
"symfony/yaml": "6.4.*"
18+
"symfony/console": "7.0.*",
19+
"symfony/dotenv": "7.0.*",
20+
"symfony/flex": "^2.4",
21+
"symfony/form": "7.0.*",
22+
"symfony/framework-bundle": "7.0.*",
23+
"symfony/mailer": "7.0.*",
24+
"symfony/runtime": "7.0.*",
25+
"symfony/security-bundle": "7.0.*",
26+
"symfony/translation": "7.0.*",
27+
"symfony/validator": "7.0.*",
28+
"symfony/yaml": "7.0.*"
3129
},
3230
"require-dev": {
33-
"codeception/codeception": "^5.0.0",
31+
"codeception/codeception": "^5.0.8",
3432
"codeception/module-asserts": "^3.0",
3533
"codeception/module-doctrine2": "^3.0",
3634
"codeception/module-phpbrowser": "^3.0",
37-
"codeception/module-symfony": "^3.0 | *@dev",
38-
"doctrine/doctrine-fixtures-bundle": "^3.4.2",
39-
"friendsofphp/php-cs-fixer": "^3.3",
40-
"phpmd/phpmd": "^2.11",
35+
"codeception/module-symfony": "^3.2 | *@dev",
36+
"doctrine/doctrine-fixtures-bundle": "^3.5",
37+
"friendsofphp/php-cs-fixer": "^3.46",
38+
"phpmd/phpmd": "^2.15",
39+
"phpstan/phpdoc-parser": "^1.25",
4140
"phpunit/phpunit": "^10.0",
42-
"rector/rector": "^0.12.5",
43-
"squizlabs/php_codesniffer": "^3.6",
44-
"symfony/debug-bundle": "6.4.*",
45-
"symfony/maker-bundle": "^1.41",
46-
"symfony/twig-bundle": "6.4.*",
47-
"symfony/var-dumper": "6.4.*",
48-
"symfony/web-profiler-bundle": "6.4.*",
49-
"vlucas/phpdotenv": "^5.4"
41+
"rector/rector": "^0.18.13",
42+
"squizlabs/php_codesniffer": "^3.8",
43+
"symfony/debug-bundle": "7.0.*",
44+
"symfony/maker-bundle": "^1.52",
45+
"symfony/twig-bundle": "7.0.*",
46+
"symfony/var-dumper": "7.0.*",
47+
"symfony/web-profiler-bundle": "7.0.*",
48+
"vlucas/phpdotenv": "^5.6"
5049
},
5150
"config": {
5251
"allow-plugins": {
53-
"composer/package-versions-deprecated": true,
5452
"php-http/discovery": true,
5553
"symfony/flex": true,
5654
"symfony/runtime": true
@@ -61,7 +59,7 @@
6159
},
6260
"sort-packages": true,
6361
"platform": {
64-
"php": "8.1.0"
62+
"php": "8.2.0"
6563
}
6664
},
6765
"autoload": {
@@ -70,9 +68,6 @@
7068
}
7169
},
7270
"autoload-dev": {
73-
"classmap": [
74-
"tests/_build/support"
75-
],
7671
"psr-4": {
7772
"App\\Tests\\": "tests/"
7873
}
@@ -84,7 +79,8 @@
8479
"symfony/polyfill-php73": "*",
8580
"symfony/polyfill-php74": "*",
8681
"symfony/polyfill-php80": "*",
87-
"symfony/polyfill-php81": "*"
82+
"symfony/polyfill-php81": "*",
83+
"symfony/polyfill-php82": "*"
8884
},
8985
"scripts": {
9086
"auto-scripts": {
@@ -97,8 +93,6 @@
9793
"@psalm"
9894
],
9995
"test": "vendor/bin/codecept run --colors",
100-
"psalm": "vendor/bin/psalm --no-cache",
101-
"rector": "vendor/bin/rector process src -c rector.php --no-progress-bar -n",
10296
"post-install-cmd": [
10397
"@auto-scripts"
10498
],
@@ -116,7 +110,7 @@
116110
"extra": {
117111
"symfony": {
118112
"allow-contrib": false,
119-
"require": "6.4.*"
113+
"require": "7.0.*"
120114
}
121115
}
122116
}

0 commit comments

Comments
 (0)