Skip to content

Commit ca49c52

Browse files
authored
Add Symfony 7 support & Update PHP-CS-Fixer (#133)
1 parent 1875720 commit ca49c52

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

.github/workflows/test-application.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,27 @@ jobs:
3434
lint: true
3535
env:
3636
SYMFONY_DEPRECATIONS_HELPER: weak
37+
- php-version: '8.1'
38+
dependency-versions: 'highest'
39+
php-extensions: 'ctype, iconv, mysql, imagick'
40+
tools: 'composer:v2'
41+
lint: true
42+
env:
43+
SYMFONY_DEPRECATIONS_HELPER: weak
44+
- php-version: '8.2'
45+
dependency-versions: 'highest'
46+
php-extensions: 'ctype, iconv, mysql, imagick'
47+
tools: 'composer:v2'
48+
lint: true
49+
env:
50+
SYMFONY_DEPRECATIONS_HELPER: weak
51+
- php-version: '8.3'
52+
dependency-versions: 'highest'
53+
php-extensions: 'ctype, iconv, mysql, imagick'
54+
tools: 'composer:v2'
55+
lint: true
56+
env:
57+
SYMFONY_DEPRECATIONS_HELPER: weak
3758

3859
services:
3960
mysql:

DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class Configuration implements ConfigurationInterface
2424
{
25-
public function getConfigTreeBuilder()
25+
public function getConfigTreeBuilder(): TreeBuilder
2626
{
2727
$treeBuilder = new TreeBuilder('sulu_sylius_consumer');
2828
$treeBuilder->getRootNode()

Tests/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
if (\file_exists(__DIR__ . '/../.env')) {
2424
if (!\class_exists(Dotenv::class)) {
25-
throw new \RuntimeException('Add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
25+
throw new RuntimeException('Add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
2626
}
2727

2828
(new Dotenv())->load(__DIR__ . '/../.env');

composer.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@
1313
"require": {
1414
"php": "^7.2|^8.0",
1515
"sulu/sulu": "^2.1 || 2.x-dev",
16-
"symfony/config": "^4.4 || ^5.0 || ^6.0",
17-
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
18-
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
19-
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0",
20-
"symfony/messenger": "^4.4 || ^5.0 || ^6.0",
16+
"symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0",
17+
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0 || ^7.0",
18+
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
19+
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0 || ^7.0",
20+
"symfony/messenger": "^4.4 || ^5.0 || ^6.0 || ^7.0",
2121
"webmozart/assert": "^1.9"
2222
},
2323
"require-dev": {
24-
"friendsofphp/php-cs-fixer": "^2.15 || ^3.0",
24+
"php-cs-fixer/shim": "^3.9",
2525
"handcraftedinthealps/zendsearch": "^2.0",
26-
"jackalope/jackalope-doctrine-dbal": "^1.3.4",
26+
"jackalope/jackalope-doctrine-dbal": "^1.3.4|| ^2.0",
2727
"jangregor/phpstan-prophecy": "^1.0",
2828
"phpspec/prophecy": "^1.15",
2929
"phpstan/phpstan": "^1.0",
3030
"phpstan/phpstan-doctrine": "^1.0",
3131
"phpstan/phpstan-symfony": "^1.0",
3232
"phpstan/phpstan-webmozart-assert": "^1.0",
3333
"phpunit/phpunit": "^8.2",
34-
"symfony/browser-kit": "^4.4 || ^5.0 | ^6.0",
35-
"symfony/dotenv": "^4.4 || ^5.0 || ^6.0",
36-
"symfony/error-handler": "^4.4 || ^5.0 || ^6.0",
34+
"symfony/browser-kit": "^4.4 || ^5.0 || ^6.0 || ^7.0",
35+
"symfony/dotenv": "^4.4 || ^5.0 || ^6.0 || ^7.0",
36+
"symfony/error-handler": "^4.4 || ^5.0 || ^6.0 || ^7.0",
3737
"symfony/monolog-bundle": "^3.3"
3838
},
3939
"conflict": {

0 commit comments

Comments
 (0)