Skip to content

Commit 43d7bcd

Browse files
authored
Add Symfony 8; drop EOL versions (#135)
* Add Symfony 8; drop EOL versions * Fix the list of supported symfonies * Fix signature
1 parent 976a85a commit 43d7bcd

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,20 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: ['8.1', '8.2', '8.3']
15-
symfony_version: ['5.4.*', '6.3.*', '6.4.*', '7.0.*']
16-
dependencies: ['--prefer-lowest', '--prefer-dist']
14+
php: ['8.2', '8.3', '8.4']
15+
symfony_version: ['6.4.*', '7.3.*', '7.4.*', '8.0.*']
16+
dependencies: ['lowest', 'highest']
17+
exclude:
18+
- php: '8.2'
19+
symfony_version: '8.0.*'
20+
- php: '8.3'
21+
symfony_version: '8.0.*'
1722

1823
name: PHP ${{ matrix.php }} tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}
1924

2025
steps:
2126
- uses: actions/checkout@v2
2227

23-
- name: Get Composer Cache Directory
24-
id: composer-cache
25-
run: |
26-
echo "::set-output name=dir::$(composer config cache-files-dir)"
27-
28-
- uses: actions/cache@v2
29-
with:
30-
path: ${{ steps.composer-cache.outputs.dir }}
31-
key: composer-${{ matrix.php }}-${{ matrix.symfony_version }}-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
32-
restore-keys: |
33-
composer-${{ matrix.php }}-${{ matrix.symfony_version }}-${{ matrix.dependencies }}-
34-
3528
- uses: shivammathur/setup-php@v2
3629
with:
3730
php-version: ${{ matrix.php }}
@@ -40,6 +33,8 @@ jobs:
4033

4134
- run: php ./Tests/bin/pin-symfony-version.php "${{ matrix.symfony_version }}"
4235

43-
- run: composer update --no-progress ${{ matrix.dependencies }}
36+
- uses: "ramsey/composer-install@v3"
37+
with:
38+
dependency-versions: "${{ matrix.dependencies }}"
4439

45-
- run: ./vendor/bin/phpunit
40+
- run: ./vendor/bin/phpunit

Bundle/DependencyInjection/EnqueueAdapterExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class EnqueueAdapterExtension extends Extension
2121
/**
2222
* {@inheritdoc}
2323
*/
24-
public function load(array $configs, ContainerBuilder $container)
24+
public function load(array $configs, ContainerBuilder $container): void
2525
{
2626
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
2727
$loader->load('services.yml');

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"require": {
1919
"php": "^8.1",
2020
"enqueue/enqueue-bundle": "^0.10",
21-
"symfony/messenger": "^5.4 || ^6.3 || ^7.0",
22-
"symfony/options-resolver": "^5.4 || ^6.3 || ^7.0",
21+
"symfony/messenger": "^6.4 || ^7.0 || ^8.0",
22+
"symfony/options-resolver": "^6.4 || ^7.0 || ^8.0",
2323
"enqueue/amqp-tools": "^0.10"
2424
},
2525
"replace": {
@@ -39,7 +39,7 @@
3939
},
4040
"require-dev": {
4141
"phpunit/phpunit": "^10.0",
42-
"symfony/yaml": "^5.4 || ^6.3 || ^7.0",
42+
"symfony/yaml": "^6.4 || ^7.0 || ^8.0",
4343
"enqueue/snsqs": "^0.10.11",
4444
"phpspec/prophecy-phpunit": "^2.0",
4545
"phpspec/prophecy": "^1.15"

0 commit comments

Comments
 (0)