Skip to content

Commit ea5ddb2

Browse files
authored
[Release] v2.1.0 Symfony 7 Kompatibilität (#13)
* added compatibility with Symfony 7 * using PHP 8.2 in GitHub Actions
1 parent 6578127 commit ea5ddb2

File tree

6 files changed

+1590
-825
lines changed

6 files changed

+1590
-825
lines changed

.github/workflows/ci.yml

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

1313
strategy:
1414
matrix:
15-
php-version: [ '8.1' ]
15+
php-version: [ '8.2' ]
1616

1717
steps:
1818
- name: Checkout code

.php-cs-fixer.dist.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
<?php
22

3+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
4+
35
$finder = PhpCsFixer\Finder::create()
4-
->exclude(['vendor'])
6+
->exclude(['node_modules', 'var', 'vendor'])
57
->in(__DIR__)
68
->ignoreDotFiles(true)
79
->ignoreVCS(true)
810
->files()
9-
->name('*.php')
10-
;
11+
->name('*.php');
1112

1213
$config = new PhpCsFixer\Config();
1314

1415
return $config
16+
->setParallelConfig(ParallelConfigFactory::detect())
1517
->setRiskyAllowed(true)
1618
->setRules([
1719
'@Symfony' => true,
1820
'@Symfony:risky' => true,
1921
'combine_consecutive_issets' => true,
2022
'combine_consecutive_unsets' => true,
23+
'global_namespace_import' => [
24+
'import_classes' => true,
25+
'import_constants' => false,
26+
'import_functions' => false,
27+
],
2128
'heredoc_to_nowdoc' => true,
2229
'increment_style' => false,
2330
'mb_str_functions' => true,
@@ -31,5 +38,4 @@
3138
'strict_comparison' => true,
3239
'strict_param' => true,
3340
])
34-
->setFinder($finder)
35-
;
41+
->setFinder($finder);

CHANGELOG.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
| Version | Date | Comment |
2-
|---------|------------|----------------------------------------------------------------------|
3-
| 2.0.0 | 2022-09-07 | Updated Monolog to version 3 (BC break) |
4-
| 1.3.0 | 2022-03-01 | Updates dependencies and possible Symfony versions |
5-
| 1.2.0 | 2021-08-31 | Updates dependencies |
6-
| 1.1.0 | 2020-08-06 | Added service definition for dependency injection |
7-
| 1.0.0 | 2020-08-06 | Initial release |
1+
| Version | Date | Comment |
2+
|---------|------------|----------------------------------------------------|
3+
| 2.1.0 | 2024-07-04 | Added compatibility with Symfony 7 |
4+
| 2.0.0 | 2022-09-07 | Updated Monolog to version 3 (BC break) |
5+
| 1.3.0 | 2022-03-01 | Updates dependencies and possible Symfony versions |
6+
| 1.2.0 | 2021-08-31 | Updates dependencies |
7+
| 1.1.0 | 2020-08-06 | Added service definition for dependency injection |
8+
| 1.0.0 | 2020-08-06 | Initial release |

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
},
1818
"prefer-stable": true,
1919
"require": {
20-
"php": ">=8.1",
20+
"php": ">=8.2",
2121
"monolog/monolog": "^3.0",
22-
"symfony/config": "^6.0",
23-
"symfony/dependency-injection": "^6.0",
24-
"symfony/http-foundation": "^6.0",
25-
"symfony/security-bundle": "^6.0"
22+
"symfony/config": "^6.0 || ^7.0",
23+
"symfony/dependency-injection": "^6.0 || ^7.0",
24+
"symfony/http-foundation": "^6.0 || ^7.0",
25+
"symfony/security-bundle": "^6.0 || ^7.0"
2626
},
2727
"require-dev": {
2828
"friendsofphp/php-cs-fixer": "^v3.11",
29-
"phpunit/phpunit": "^9.5",
30-
"symfony/phpunit-bridge": "^6.0"
29+
"phpunit/phpunit": "^9.6",
30+
"symfony/phpunit-bridge": "^6.0 || ^7.0"
3131
},
3232
"autoload": {
3333
"psr-4": {

0 commit comments

Comments
 (0)