Skip to content

Commit 0f62f06

Browse files
committed
Add Symfony 8 support
1 parent a53f037 commit 0f62f06

File tree

7 files changed

+31
-33
lines changed

7 files changed

+31
-33
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,29 @@ on:
44
pull_request: ~
55
push: ~
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
phpstan:
9-
runs-on: ubuntu-22.04
10-
strategy:
11-
matrix:
12-
include:
13-
- description: 'Symfony 5.4'
14-
php: '7.4'
15-
symfony: 5.4.*
16-
- description: 'Symfony 6.4'
17-
php: '8.3'
18-
symfony: 6.4.*
19-
- description: 'Symfony 7.1'
20-
php: '8.4'
21-
symfony: 7.1.*
22-
name: PHPStan - PHP ${{ matrix.php }} tests (${{ matrix.description }})
12+
runs-on: ubuntu-24.04
13+
name: PHPStan
2314
steps:
2415
- name: Checkout
25-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
2617

2718
- name: Setup PHP
2819
uses: shivammathur/setup-php@v2
2920
with:
3021
coverage: "none"
31-
php-version: ${{ matrix.php }}
32-
- run: |
33-
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
34-
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
22+
php-version: '8.4'
23+
- run: composer update --no-interaction --no-progress --ansi
3524
- run: vendor/bin/phpstan analyse -c phpstan.dist.neon --error-format=github
3625

3726
tests:
38-
runs-on: ubuntu-22.04
27+
runs-on: ubuntu-24.04
3928
strategy:
29+
fail-fast: false
4030
matrix:
4131
include:
4232
- description: 'Symfony 5.4'
@@ -47,19 +37,21 @@ jobs:
4737
php: '8.3'
4838
symfony: '5.4.*'
4939
- description: 'Symfony 6.4'
50-
php: '8.3'
40+
php: '8.4'
5141
symfony: '6.4'
52-
- description: 'Symfony 7.1'
53-
php: '8.3'
54-
symfony: '7.1'
55-
- description: 'Symfony 7.2'
42+
- description: 'Symfony 7.3'
43+
php: '8.4'
44+
symfony: '7.3'
45+
- description: 'Symfony 8.0'
5646
php: '8.4'
57-
symfony: '7.2.x-dev'
47+
symfony: '8.0.x-dev'
48+
continue-on-error: true
5849

5950
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
51+
continue-on-error: ${{ matrix.continue-on-error || false }}
6052
steps:
6153
- name: Checkout
62-
uses: actions/checkout@v4
54+
uses: actions/checkout@v5
6355
- name: Cache
6456
uses: actions/cache@v3
6557
with:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8+
### Added
9+
- Add Symfony 8 support
810

911
## 2.4.0 - 2025-04-10
1012
### Changed

tests/FunctionalTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ protected function setUp(): void
1818
$this->kernel = new TestKernel(uniqid('prod_', false), false);
1919

2020
switch (Kernel::MAJOR_VERSION) {
21+
case 8:
22+
$this->kernel->addConfigurationFilename(__DIR__ . '/fixtures/config/base_symfony_8.yml');
23+
break;
2124
case 7:
2225
$this->kernel->addConfigurationFilename(__DIR__ . '/fixtures/config/base_symfony_7.yml');
2326
break;

tests/fixtures/config/base_symfony_5.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ framework:
44
validation: { enabled: true, enable_annotations: false, email_validation_mode: 'html5' }
55
php_errors: { log: true }
66
http_method_override: false
7-
# csrf_protection: true
8-
# session: ~

tests/fixtures/config/base_symfony_6.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ framework:
66
http_method_override: false
77
handle_all_throwables: true
88
annotations: { enabled: false }
9-
# csrf_protection: true
10-
# session: ~

tests/fixtures/config/base_symfony_7.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ framework:
66
http_method_override: false
77
handle_all_throwables: true
88
annotations: { enabled: false }
9-
# csrf_protection: true
10-
# session: ~
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
framework:
2+
secret: ThisIsNotReallyASecretSoPleaseChangeIt
3+
router: { resource: "%kernel.project_dir%/config/routing.yml", utf8: true }
4+
validation: { enabled: true, email_validation_mode: 'html5' }
5+
php_errors: { log: true }
6+
http_method_override: false
7+
handle_all_throwables: true

0 commit comments

Comments
 (0)