Skip to content

Commit 971952a

Browse files
committed
Update CI to run with PHP 8.4 and Symfony 7.2
1 parent 2382ef5 commit 971952a

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

.github/workflows/ci.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
coverage: none
28-
php-version: 8.3
28+
php-version: 8.4
2929

3030
- name: "Install Dependencies with Composer"
3131
uses: ramsey/composer-install@v3
@@ -38,6 +38,8 @@ jobs:
3838
php-cs-fixer:
3939
name: PHP-CS-Fixer
4040
runs-on: ubuntu-latest
41+
env:
42+
PHP_CS_FIXER_IGNORE_ENV: 1
4143
steps:
4244
- name: "Checkout"
4345
uses: actions/checkout@v4
@@ -46,7 +48,7 @@ jobs:
4648
uses: shivammathur/setup-php@v2
4749
with:
4850
coverage: none
49-
php-version: 8.3
51+
php-version: 8.4
5052
tools: cs2pr
5153

5254
- name: "Install Dependencies with Composer"
@@ -60,15 +62,23 @@ jobs:
6062
runs-on: ubuntu-latest
6163
strategy:
6264
matrix:
63-
php-version: ['7.4', '8.1', '8.2', '8.3']
64-
symfony-version: ['5.4', '6.4', '7.0']
65+
php-version: ['7.4', '8.1', '8.2', '8.3', '8.4']
66+
symfony-version: ['5.4', '6.4', '7.0', '7.1', '7.2']
6567
exclude:
6668
- php-version: '7.4'
6769
symfony-version: '6.4'
6870
- php-version: '7.4'
6971
symfony-version: '7.0'
72+
- php-version: '7.4'
73+
symfony-version: '7.1'
74+
- php-version: '7.4'
75+
symfony-version: '7.2'
7076
- php-version: '8.1'
7177
symfony-version: '7.0'
78+
- php-version: '8.1'
79+
symfony-version: '7.1'
80+
- php-version: '8.1'
81+
symfony-version: '7.2'
7282

7383
steps:
7484
- name: "Checkout"
@@ -88,8 +98,8 @@ jobs:
8898
composer-options: "--optimize-autoloader"
8999

90100
- name: "Run tests with PHPUnit"
91-
# env:
92-
# SYMFONY_DEPRECATIONS_HELPER: 'max[self]=2'
101+
env:
102+
SYMFONY_DEPRECATIONS_HELPER: 'ignoreFile=./tests/baseline-ignore'
93103
run: vendor/bin/simple-phpunit
94104

95105
codecov:
@@ -103,10 +113,12 @@ jobs:
103113
uses: shivammathur/setup-php@v2
104114
with:
105115
coverage: pcov
106-
php-version: 8.3
116+
php-version: 8.4
107117

108118
- name: "Install Dependencies with Composer"
109119
uses: ramsey/composer-install@v3
110120

111121
- name: "Run tests with PHPUnit and collect coverage"
122+
env:
123+
SYMFONY_DEPRECATIONS_HELPER: 'ignoreFile=./tests/baseline-ignore'
112124
run: php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude="~vendor~" vendor/bin/simple-phpunit --colors=always --coverage-text -vvv

tests/baseline-ignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
%Symfony\\Component\\Process\\ExecutableFinder::find\(\): Implicitly marking parameter \$default as nullable is deprecated, the explicit nullable type must be used instead%
2+
%Symfony\\Component\\Process\\Process::__construct\(\): Implicitly marking parameter \$cwd as nullable is deprecated, the explicit nullable type must be used instead%
3+
%Symfony\\Component\\Process\\Process::__construct\(\): Implicitly marking parameter \$env as nullable is deprecated, the explicit nullable type must be used instead%
4+
%Symfony\\Component\\Process\\Process::fromShellCommandline\(\): Implicitly marking parameter \$cwd as nullable is deprecated, the explicit nullable type must be used instead%
5+
%Symfony\\Component\\Process\\Process::fromShellCommandline\(\): Implicitly marking parameter \$env as nullable is deprecated, the explicit nullable type must be used instead%
6+
%Symfony\\Component\\Process\\Process::run\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
7+
%Symfony\\Component\\Process\\Process::mustRun\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
8+
%Symfony\\Component\\Process\\Process::start\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
9+
%Symfony\\Component\\Process\\Process::start\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
10+
%Symfony\\Component\\Process\\Process::wait\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
11+
%Symfony\\Component\\Process\\Process::stop\(\): Implicitly marking parameter \$signal as nullable is deprecated, the explicit nullable type must be used instead%
12+
%Symfony\\Component\\Process\\Process::buildCallback\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
13+
%Symfony\\Component\\Filesystem\\Filesystem::touch\(\): Implicitly marking parameter \$time as nullable is deprecated, the explicit nullable type must be used instead%
14+
%Symfony\\Component\\Filesystem\\Filesystem::touch\(\): Implicitly marking parameter \$atime as nullable is deprecated, the explicit nullable type must be used instead%
15+
%Symfony\\Component\\Filesystem\\Filesystem::mirror\(\): Implicitly marking parameter \$iterator as nullable is deprecated, the explicit nullable type must be used instead%
16+
%Symfony\\Component\\Process\\Process::restart\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%

0 commit comments

Comments
 (0)