Skip to content

Commit 9640265

Browse files
Set PHP min requirement to 8.2 and Prepare 1.0 Version (#19)
1 parent af8ed23 commit 9640265

File tree

3 files changed

+9
-28
lines changed

3 files changed

+9
-28
lines changed

.github/workflows/test-application.yaml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,27 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
include:
22-
- php-version: '8.0'
23-
coverage: false
24-
dependency-versions: 'lowest'
25-
phpunit-config: 'phpunit-9.xml.dist'
26-
env:
27-
SYMFONY_DEPRECATIONS_HELPER: weak
28-
29-
- php-version: '8.1'
30-
coverage: false
31-
dependency-versions: 'highest'
32-
phpunit-config: 'phpunit-9.xml.dist'
33-
env:
34-
SYMFONY_DEPRECATIONS_HELPER: weak
35-
3622
- php-version: '8.2'
3723
coverage: true
38-
dependency-versions: 'highest'
39-
phpunit-config: 'phpunit.xml.dist'
24+
dependency-versions: 'lowest'
4025
env:
4126
SYMFONY_DEPRECATIONS_HELPER: weak
4227

4328
- php-version: '8.3'
4429
coverage: false
4530
dependency-versions: 'highest'
46-
phpunit-config: 'phpunit.xml.dist'
4731
env:
4832
SYMFONY_DEPRECATIONS_HELPER: weak
4933

5034
- php-version: '8.4'
5135
coverage: false
5236
dependency-versions: 'highest'
53-
phpunit-config: 'phpunit.xml.dist'
5437
env:
5538
SYMFONY_DEPRECATIONS_HELPER: weak
5639

5740
- php-version: '8.5'
5841
coverage: true
5942
dependency-versions: 'highest'
60-
phpunit-config: 'phpunit.xml.dist'
6143
env:
6244
SYMFONY_DEPRECATIONS_HELPER: weak
6345

@@ -72,7 +54,7 @@ jobs:
7254

7355
steps:
7456
- name: Checkout project
75-
uses: actions/checkout@v2
57+
uses: actions/checkout@v6
7658

7759
- name: Install and configure PHP
7860
uses: shivammathur/setup-php@v2
@@ -87,7 +69,7 @@ jobs:
8769
run: composer remove "*php-cs-fixer*" "*phpstan*" "*rector*" --dev --no-update
8870

8971
- name: Install composer dependencies
90-
uses: ramsey/composer-install@v2
72+
uses: ramsey/composer-install@v3
9173
with:
9274
dependency-versions: ${{ matrix.dependency-versions }}
9375
composer-options: ${{ matrix.composer-options }}
@@ -97,7 +79,7 @@ jobs:
9779

9880
- name: Execute test cases
9981
if: matrix.coverage == false
100-
run: composer test -- --configuration=${{ matrix.phpunit-config }}
82+
run: composer test
10183

10284
- name: Execute test cases with coverage
10385
if: ${{ matrix.coverage }}
@@ -113,16 +95,16 @@ jobs:
11395

11496
steps:
11597
- name: Checkout project
116-
uses: actions/checkout@v2
98+
uses: actions/checkout@v6
11799

118100
- name: Install and configure PHP
119101
uses: shivammathur/setup-php@v2
120102
with:
121-
php-version: 8.1
103+
php-version: 8.2
122104
extensions: ctype, iconv, mysql
123105

124106
- name: Install composer dependencies
125-
uses: ramsey/composer-install@v1
107+
uses: ramsey/composer-install@v3
126108
with:
127109
dependency-versions: highest
128110

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"type": "sulu-bundle",
66
"require": {
7-
"php": "8.0.* || 8.1.* || 8.2.* || 8.3.* || 8.4.* || 8.5.*",
7+
"php": "8.2.* || 8.3.* || 8.4.* || 8.5.*",
88
"doctrine/dbal": "^2.13 || ^3.0 || ^4.0",
99
"doctrine/doctrine-bundle": "^2.5 || ^3.1",
1010
"doctrine/orm": "^2.11 || ^3.0",
@@ -30,7 +30,7 @@
3030
"phpstan/phpstan-phpunit": "^2.0",
3131
"phpstan/phpstan-symfony": "^2.",
3232
"phpstan/phpstan-webmozart-assert": "^2.0",
33-
"phpunit/phpunit": "^9.5 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
33+
"phpunit/phpunit": "^11.5 || ^12.5 || ^13.0",
3434
"qossmic/deptrac-shim": "^0.24.0 || ^1.0",
3535
"rector/rector": "^2.0",
3636
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0 || ^8.0",

tests/Application/Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function registerBundles(): iterable
3939
];
4040

4141
foreach ($bundles as $class => $envs) {
42-
// @phpstan-ignore-next-line offsetAccess.invalidOffset
4342
if ($envs[$this->environment] ?? $envs['all'] ?? false) {
4443
yield new $class();
4544
}

0 commit comments

Comments
 (0)