Skip to content

Commit a9cbcb3

Browse files
authored
Merge pull request #791 from KnpLabs/fix-ext-depr
fix deprecation
2 parents e251513 + 27d5afc commit a9cbcb3

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ on:
66

77
jobs:
88
phpstan:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
name: PHPStan
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Run PHPStan
1515
uses: docker://oskarstark/phpstan-ga
1616
env:
1717
REQUIRE_DEV: true
1818
with:
1919
args: analyse
2020
cs-fixer:
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-22.04
2222
name: PHP-CS-Fixer
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Run PHP-CS-Fixer
2727
uses: docker://oskarstark/php-cs-fixer-ga
2828
tests:
@@ -36,12 +36,11 @@ jobs:
3636
dependency:
3737
- ''
3838
symfony:
39-
- '6.3.*'
4039
- '6.4.*'
4140
- '7.0.*'
4241
include:
4342
- php: '8.1'
44-
symfony: '6.3.*'
43+
symfony: '6.4.*'
4544
dependency: 'lowest'
4645
- php: '8.2'
4746
symfony: '7.0.*'
@@ -52,7 +51,7 @@ jobs:
5251
name: PHPUnit PHP ${{ matrix.php }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony }})
5352
steps:
5453
- name: Checkout
55-
uses: actions/checkout@v3
54+
uses: actions/checkout@v4
5655

5756
- name: Setup PHP
5857
uses: shivammathur/setup-php@v2
@@ -64,7 +63,7 @@ jobs:
6463
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
6564

6665
- name: Cache dependencies
67-
uses: actions/cache@v3
66+
uses: actions/cache@v4
6867
with:
6968
path: ${{ steps.composer-cache.outputs.dir }}
7069
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
"require": {
1919
"php": "^8.1",
2020
"knplabs/knp-components": "^4.1",
21-
"symfony/config": "^6.3 || ^7.0",
22-
"symfony/dependency-injection": "^6.3 || ^7.0",
23-
"symfony/event-dispatcher": "^6.3 || ^7.0",
24-
"symfony/http-foundation": "^6.3 || ^7.0",
25-
"symfony/http-kernel": "^6.3 || ^7.0",
26-
"symfony/routing": "^6.3 || ^7.0",
27-
"symfony/translation": "^6.3 || ^7.0",
21+
"symfony/config": "^6.4 || ^7.0",
22+
"symfony/dependency-injection": "^6.4 || ^7.0",
23+
"symfony/event-dispatcher": "^6.4 || ^7.0",
24+
"symfony/http-foundation": "^6.4 || ^7.0",
25+
"symfony/http-kernel": "^6.4 || ^7.0",
26+
"symfony/routing": "^6.4 || ^7.0",
27+
"symfony/translation": "^6.4 || ^7.0",
2828
"twig/twig": "^3.0"
2929
},
3030
"require-dev": {
31-
"phpstan/phpstan": "^1.9",
32-
"phpunit/phpunit": "^9.5",
33-
"symfony/expression-language": "^6.3 || ^7.0",
34-
"symfony/templating": "^6.3 || ^7.0"
31+
"phpstan/phpstan": "^1.11",
32+
"phpunit/phpunit": "^9.6",
33+
"symfony/expression-language": "^6.4 || ^7.0",
34+
"symfony/templating": "^6.4 || ^7.0"
3535
},
3636
"autoload": {
3737
"psr-4": {

src/DependencyInjection/KnpPaginatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Symfony\Component\DependencyInjection\ContainerBuilder;
99
use Symfony\Component\DependencyInjection\Definition;
1010
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
11-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
11+
use Symfony\Component\DependencyInjection\Extension\Extension;
1212

1313
final class KnpPaginatorExtension extends Extension
1414
{

0 commit comments

Comments
 (0)