Skip to content

Commit 26c5853

Browse files
Merge pull request #263 from darkwebdesign/issue-240-7.0
#240: Update Add-on Pack for Symfony 7.0
2 parents 39770c6 + ab0b543 commit 26c5853

File tree

18 files changed

+88
-124
lines changed

18 files changed

+88
-124
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: 'Setup PHP'
2222
uses: 'shivammathur/setup-php@v2'
2323
with:
24-
php-version: '8.1'
24+
php-version: '8.2'
2525
- name: 'Composer Install'
2626
uses: 'ramsey/composer-install@v3'
2727
- name: 'Rector'
@@ -36,7 +36,7 @@ jobs:
3636
- name: 'Setup PHP'
3737
uses: 'shivammathur/setup-php@v2'
3838
with:
39-
php-version: '8.1'
39+
php-version: '8.2'
4040
- name: 'Composer Install'
4141
uses: 'ramsey/composer-install@v3'
4242
- name: 'PHPStan'
@@ -51,7 +51,7 @@ jobs:
5151
- name: 'Setup PHP'
5252
uses: 'shivammathur/setup-php@v2'
5353
with:
54-
php-version: '8.1'
54+
php-version: '8.2'
5555
- name: 'Composer Install'
5656
uses: 'ramsey/composer-install@v3'
5757
- name: 'PHP CS Fixer'
@@ -62,10 +62,7 @@ jobs:
6262
runs-on: 'ubuntu-24.04'
6363
strategy:
6464
matrix:
65-
include:
66-
- php: '8.1'
67-
- php: '8.2'
68-
- php: '8.3'
65+
php: ['8.2', '8.3']
6966
fail-fast: false
7067
steps:
7168
- name: 'Checkout'

.github/workflows/subtree-split.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: 'ubuntu-24.04'
1313
steps:
1414
- name: 'SSH Agent'
15-
uses: webfactory/ssh-agent@v0.9.0
15+
uses: 'webfactory/ssh-agent@v0.9.0'
1616
with:
1717
ssh-private-key: |
1818
${{ secrets.DEPLOY_KEY_SYMFONY_ADDON_CONSTRAINTS }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-pack/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-pack)
55
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-pack/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-pack)
66

7-
[![Build Status](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml/badge.svg?branch=6.4)](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml)
8-
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-pack/branch/6.4/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-pack)
9-
[![PHP Version](https://img.shields.io/badge/php-8.1%2B-777BB3.svg)](https://php.net/)
10-
[![Symfony Version](https://img.shields.io/badge/symfony-6.4-93C74B.svg)](https://symfony.com/)
7+
[![Build Status](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml/badge.svg?branch=7.0)](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml)
8+
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-pack/branch/7.0/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-pack)
9+
[![PHP Version](https://img.shields.io/badge/php-8.2%2B-777BB3.svg)](https://php.net/)
10+
[![Symfony Version](https://img.shields.io/badge/symfony-7.0-93C74B.svg)](https://symfony.com/)
1111

1212
Symfony Add-on Pack is a collection of extra Symfony components that you can use in your Symfony applications.
1313

14-
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/6.4).
14+
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.0).
1515

1616
## Features
1717

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
],
1111
"require": {
1212
"ext-json": "*",
13-
"php": "^8.1",
14-
"symfony/event-dispatcher": "6.4.*",
15-
"symfony/form": "6.4.*",
16-
"symfony/options-resolver": "6.4.*",
17-
"symfony/validator": "6.4.*"
13+
"php": "^8.2",
14+
"symfony/event-dispatcher": "7.0.*",
15+
"symfony/form": "7.0.*",
16+
"symfony/options-resolver": "7.0.*",
17+
"symfony/validator": "7.0.*"
1818
},
1919
"require-dev": {
2020
"doctrine/orm": "^2.7",

rector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

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

98
return RectorConfig::configure()
109
->withPaths([
@@ -16,8 +15,7 @@
1615
__DIR__ . '/symfony-addon-transformers/tests',
1716
])
1817
->withSets([
19-
LevelSetList::UP_TO_PHP_81,
20-
SymfonySetList::SYMFONY_64,
18+
LevelSetList::UP_TO_PHP_82,
2119
])
2220
->withImportNames(
2321
importShortClasses: false,

symfony-addon-constraints/.github/workflows/build.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: 'Setup PHP'
1818
uses: 'shivammathur/setup-php@v2'
1919
with:
20-
php-version: '8.1'
21-
- name: 'Composer Install'
22-
uses: 'ramsey/composer-install@v3'
20+
php-version: '8.2'
21+
- name: 'Install dependencies'
22+
run: 'composer install --no-progress --prefer-dist --optimize-autoloader'
2323
- name: 'Rector'
2424
run: 'vendor/bin/rector process --dry-run --no-progress-bar --ansi'
2525

@@ -32,9 +32,9 @@ jobs:
3232
- name: 'Setup PHP'
3333
uses: 'shivammathur/setup-php@v2'
3434
with:
35-
php-version: '8.1'
36-
- name: 'Composer Install'
37-
uses: 'ramsey/composer-install@v3'
35+
php-version: '8.2'
36+
- name: 'Install dependencies'
37+
run: 'composer install --no-progress --prefer-dist --optimize-autoloader'
3838
- name: 'PHPStan'
3939
run: 'vendor/bin/phpstan analyze --no-progress --ansi'
4040

@@ -47,9 +47,9 @@ jobs:
4747
- name: 'Setup PHP'
4848
uses: 'shivammathur/setup-php@v2'
4949
with:
50-
php-version: '8.1'
51-
- name: 'Composer Install'
52-
uses: 'ramsey/composer-install@v3'
50+
php-version: '8.2'
51+
- name: 'Install dependencies'
52+
run: 'composer install --no-progress --prefer-dist --optimize-autoloader'
5353
- name: 'PHP CS Fixer'
5454
run: 'vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none --ansi'
5555

@@ -58,10 +58,7 @@ jobs:
5858
runs-on: 'ubuntu-24.04'
5959
strategy:
6060
matrix:
61-
include:
62-
- php: '8.1'
63-
- php: '8.2'
64-
- php: '8.3'
61+
php: ['8.2', '8.3']
6562
fail-fast: false
6663
steps:
6764
- name: 'Checkout'
@@ -70,8 +67,8 @@ jobs:
7067
uses: 'shivammathur/setup-php@v2'
7168
with:
7269
php-version: "${{ matrix.php }}"
73-
- name: 'Composer Install'
74-
uses: 'ramsey/composer-install@v3'
70+
- name: 'Install dependencies'
71+
run: 'composer install --no-progress --prefer-dist --optimize-autoloader'
7572
- name: 'PHPUnit'
7673
run: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover phpunit-coverage.xml'
7774
- name: 'Code Climate'

symfony-addon-constraints/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-constraints/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)
55
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-constraints/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)
66

7-
[![Build Status](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=6.4)](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml)
8-
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints/branch/6.4/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints)
9-
[![PHP Version](https://img.shields.io/badge/php-8.1%2B-777BB3.svg)](https://php.net/)
10-
[![Symfony Version](https://img.shields.io/badge/symfony-6.4-93C74B.svg)](https://symfony.com/)
7+
[![Build Status](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=7.0)](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml)
8+
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints/branch/7.0/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints)
9+
[![PHP Version](https://img.shields.io/badge/php-8.2%2B-777BB3.svg)](https://php.net/)
10+
[![Symfony Version](https://img.shields.io/badge/symfony-7.0-93C74B.svg)](https://symfony.com/)
1111

1212
Symfony Add-on Constraints is a collection of extra Symfony validation constraints that you can use in your Symfony
1313
applications.
1414

15-
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/6.4).
15+
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.0).
1616

1717
## Features
1818

symfony-addon-constraints/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
],
1111
"require": {
1212
"ext-json": "*",
13-
"php": "^8.1",
14-
"symfony/validator": "6.4.*"
13+
"php": "^8.2",
14+
"symfony/validator": "7.0.*"
1515
},
1616
"require-dev": {
1717
"friendsofphp/php-cs-fixer": "^3.58",

symfony-addon-constraints/rector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

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

98
return RectorConfig::configure()
109
->withPaths([
1110
__DIR__ . '/src',
1211
__DIR__ . '/tests',
1312
])
1413
->withSets([
15-
LevelSetList::UP_TO_PHP_81,
16-
SymfonySetList::SYMFONY_64,
14+
LevelSetList::UP_TO_PHP_82,
1715
])
1816
->withImportNames(
1917
importShortClasses: false,

symfony-addon-form-types/.github/workflows/build.yaml

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ jobs:
1717
- name: 'Setup PHP'
1818
uses: 'shivammathur/setup-php@v2'
1919
with:
20-
php-version: '8.1'
21-
- name: 'Fix dependencies'
22-
uses: 'php-actions/composer@v6'
23-
with:
24-
command: 'require'
25-
args: 'darkwebdesign/symfony-addon-transformers:6.4.x-dev --dev --no-install'
26-
php_version: '8.1'
27-
- name: 'Composer Install'
28-
uses: 'ramsey/composer-install@v3'
20+
php-version: '8.2'
21+
- name: 'Install dependencies'
22+
run: |
23+
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.0.x-dev
24+
composer install --no-progress --prefer-dist --optimize-autoloader
2925
- name: 'Rector'
3026
run: 'vendor/bin/rector process --dry-run --no-progress-bar --ansi'
3127

@@ -38,15 +34,11 @@ jobs:
3834
- name: 'Setup PHP'
3935
uses: 'shivammathur/setup-php@v2'
4036
with:
41-
php-version: '8.1'
42-
- name: 'Fix dependencies'
43-
uses: 'php-actions/composer@v6'
44-
with:
45-
command: 'require'
46-
args: 'darkwebdesign/symfony-addon-transformers:6.4.x-dev --dev --no-install'
47-
php_version: '8.1'
48-
- name: 'Composer Install'
49-
uses: 'ramsey/composer-install@v3'
37+
php-version: '8.2'
38+
- name: 'Install dependencies'
39+
run: |
40+
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.0.x-dev
41+
composer install --no-progress --prefer-dist --optimize-autoloader
5042
- name: 'PHPStan'
5143
run: 'vendor/bin/phpstan analyze --no-progress --ansi'
5244

@@ -59,15 +51,11 @@ jobs:
5951
- name: 'Setup PHP'
6052
uses: 'shivammathur/setup-php@v2'
6153
with:
62-
php-version: '8.1'
63-
- name: 'Fix dependencies'
64-
uses: 'php-actions/composer@v6'
65-
with:
66-
command: 'require'
67-
args: 'darkwebdesign/symfony-addon-transformers:6.4.x-dev --dev --no-install'
68-
php_version: '8.1'
69-
- name: 'Composer Install'
70-
uses: 'ramsey/composer-install@v3'
54+
php-version: '8.2'
55+
- name: 'Install dependencies'
56+
run: |
57+
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.0.x-dev
58+
composer install --no-progress --prefer-dist --optimize-autoloader
7159
- name: 'PHP CS Fixer'
7260
run: 'vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none --ansi'
7361

@@ -76,10 +64,7 @@ jobs:
7664
runs-on: 'ubuntu-24.04'
7765
strategy:
7866
matrix:
79-
include:
80-
- php: '8.1'
81-
- php: '8.2'
82-
- php: '8.3'
67+
php: ['8.2', '8.3']
8368
fail-fast: false
8469
steps:
8570
- name: 'Checkout'
@@ -88,14 +73,10 @@ jobs:
8873
uses: 'shivammathur/setup-php@v2'
8974
with:
9075
php-version: "${{ matrix.php }}"
91-
- name: 'Fix dependencies'
92-
uses: 'php-actions/composer@v6'
93-
with:
94-
command: 'require'
95-
args: 'darkwebdesign/symfony-addon-transformers:6.4.x-dev --dev --no-install'
96-
php_version: "${{ matrix.php }}"
97-
- name: 'Composer Install'
98-
uses: 'ramsey/composer-install@v3'
76+
- name: 'Install dependencies'
77+
run: |
78+
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.0.x-dev
79+
composer install --no-progress --prefer-dist --optimize-autoloader
9980
- name: 'PHPUnit'
10081
run: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover phpunit-coverage.xml'
10182
- name: 'Code Climate'

0 commit comments

Comments
 (0)