Skip to content

Commit 36f6558

Browse files
Merge pull request #39 from cleverage/38
Upgrade to Symfony 7.3 & PHP 8.4
2 parents 5b3a0ed + 644a44f commit 36f6558

File tree

8 files changed

+53
-28
lines changed

8 files changed

+53
-28
lines changed

.docker/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ x-base-php: &base-php
44
args:
55
UID: ${UID:-1000}
66
GID: ${GID:-1000}
7-
PHP_VERSION: ${PHP_VERSION:-8.2}
8-
XDEBUG_VERSION: ${XDEBUG_VERSION:-3.2.0}
7+
PHP_VERSION: ${PHP_VERSION:-8.4}
8+
XDEBUG_VERSION: ${XDEBUG_VERSION:-3.4.5}
99
env_file: .env
1010
volumes:
1111
- ../:/var/www

.docker/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHP_VERSION=8.2
1+
ARG PHP_VERSION=8.1
22
FROM php:${PHP_VERSION}-fpm-alpine AS php
33

44
ARG XDEBUG_VERSION=3.1.4

.github/workflows/quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install PHP with extensions
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: '8.2'
22+
php-version: '8.4'
2323
coverage: none
2424
tools: composer:v2
2525
- name: Install Composer dependencies (locked)
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install PHP with extensions
3939
uses: shivammathur/setup-php@v2
4040
with:
41-
php-version: '8.2'
41+
php-version: '8.4'
4242
coverage: none
4343
tools: composer:v2
4444
- name: Install Composer dependencies (locked)
@@ -55,7 +55,7 @@ jobs:
5555
- name: Install PHP with extensions
5656
uses: shivammathur/setup-php@v2
5757
with:
58-
php-version: '8.2'
58+
php-version: '8.4'
5959
coverage: none
6060
tools: composer:v2
6161
- name: Install Composer dependencies (locked)

.github/workflows/test.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ jobs:
2222
php-version:
2323
- '8.2'
2424
- '8.3'
25+
- '8.4'
2526
dependencies: [highest]
2627
allowed-to-fail: [false]
2728
symfony-require: ['']
2829
variant: [normal]
2930
include:
31+
- php-version: '8.1'
32+
dependencies: highest
33+
allowed-to-fail: false
34+
symfony-require: 6.4.*
35+
variant: symfony/symfony:"6.4.*"
3036
- php-version: '8.2'
3137
dependencies: highest
3238
allowed-to-fail: false
@@ -35,8 +41,8 @@ jobs:
3541
- php-version: '8.2'
3642
dependencies: highest
3743
allowed-to-fail: false
38-
symfony-require: 7.1.*
39-
variant: symfony/symfony:"7.1.*"
44+
symfony-require: 7.3.*
45+
variant: symfony/symfony:"7.3.*"
4046
- php-version: '8.3'
4147
dependencies: highest
4248
allowed-to-fail: false
@@ -45,8 +51,18 @@ jobs:
4551
- php-version: '8.3'
4652
dependencies: highest
4753
allowed-to-fail: false
48-
symfony-require: 7.1.*
49-
variant: symfony/symfony:"7.1.*"
54+
symfony-require: 7.3.*
55+
variant: symfony/symfony:"7.3.*"
56+
- php-version: '8.4'
57+
dependencies: highest
58+
allowed-to-fail: false
59+
symfony-require: 6.4.*
60+
variant: symfony/symfony:"6.4.*"
61+
- php-version: '8.4'
62+
dependencies: highest
63+
allowed-to-fail: false
64+
symfony-require: 7.3.*
65+
variant: symfony/symfony:"7.3.*"
5066

5167
steps:
5268
- name: Checkout

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
"phpunit/phpunit": "<10.0",
3030
"rector/rector": "*",
3131
"roave/security-advisories": "dev-latest",
32-
"symfony/browser-kit": "^6.4|^7.1",
33-
"symfony/css-selector": "^6.4|^7.1",
34-
"symfony/debug-bundle": "^6.4|^7.1",
32+
"symfony/browser-kit": "^6.4|^7.3",
33+
"symfony/css-selector": "^6.4|^7.3",
34+
"symfony/debug-bundle": "^6.4|^7.3",
3535
"symfony/maker-bundle": "^1.31",
36-
"symfony/web-profiler-bundle": "^6.4|^7.1"
36+
"symfony/web-profiler-bundle": "^6.4|^7.3"
3737
},
3838
"scripts": {
3939
"auto-scripts": {
@@ -58,7 +58,7 @@
5858
"extra": {
5959
"symfony": {
6060
"allow-contrib": false,
61-
"require": "7.2.*"
61+
"require": "7.3.*"
6262
}
6363
}
6464
}

config/packages/property_info.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Uncomment following if you are using Symfony 7.3 or higher
2+
#framework:
3+
# property_info:
4+
# with_constructor_extractor: true

rector.php

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,20 @@
44

55
use Rector\Config\RectorConfig;
66
use Rector\Set\ValueObject\LevelSetList;
7-
use Rector\Symfony\Set\SymfonySetList;
87
use Rector\ValueObject\PhpVersion;
98

109
return RectorConfig::configure()
11-
->withPhpVersion(PhpVersion::PHP_82)
10+
->withPhpVersion(PhpVersion::PHP_84)
1211
->withPaths([
1312
__DIR__.'/src',
1413
__DIR__.'/tests',
1514
])
16-
->withPhpSets(php82: true)
15+
->withPhpSets(php81: true)
1716
// here we can define, what prepared sets of rules will be applied
18-
->withPreparedSets(
19-
deadCode: true,
20-
codeQuality: true
21-
)
17+
->withComposerBased(symfony: true)
18+
->withPreparedSets(deadCode: true, codeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true)
19+
->withAttributesSets(symfony: true, doctrine: true)
2220
->withSets([
23-
LevelSetList::UP_TO_PHP_82,
24-
SymfonySetList::SYMFONY_64,
25-
SymfonySetList::SYMFONY_71,
26-
SymfonySetList::SYMFONY_CODE_QUALITY,
27-
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
28-
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
21+
LevelSetList::UP_TO_PHP_81,
2922
])
3023
;

symfony.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,18 @@
244244
"config/packages/monolog.yaml"
245245
]
246246
},
247+
"symfony/property-info": {
248+
"version": "7.3",
249+
"recipe": {
250+
"repo": "github.com/symfony/recipes",
251+
"branch": "main",
252+
"version": "7.3",
253+
"ref": "dae70df71978ae9226ae915ffd5fad817f5ca1f7"
254+
},
255+
"files": [
256+
"config/packages/property_info.yaml"
257+
]
258+
},
247259
"symfony/routing": {
248260
"version": "7.2",
249261
"recipe": {

0 commit comments

Comments
 (0)