Skip to content

Commit

Permalink
Merge pull request #791 from KnpLabs/fix-ext-depr
Browse files Browse the repository at this point in the history
fix deprecation
  • Loading branch information
garak authored May 21, 2024
2 parents e251513 + 27d5afc commit a9cbcb3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ on:

jobs:
phpstan:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: PHPStan
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run PHPStan
uses: docker://oskarstark/phpstan-ga
env:
REQUIRE_DEV: true
with:
args: analyse
cs-fixer:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
tests:
Expand All @@ -36,12 +36,11 @@ jobs:
dependency:
- ''
symfony:
- '6.3.*'
- '6.4.*'
- '7.0.*'
include:
- php: '8.1'
symfony: '6.3.*'
symfony: '6.4.*'
dependency: 'lowest'
- php: '8.2'
symfony: '7.0.*'
Expand All @@ -52,7 +51,7 @@ jobs:
name: PHPUnit PHP ${{ matrix.php }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony }})
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"require": {
"php": "^8.1",
"knplabs/knp-components": "^4.1",
"symfony/config": "^6.3 || ^7.0",
"symfony/dependency-injection": "^6.3 || ^7.0",
"symfony/event-dispatcher": "^6.3 || ^7.0",
"symfony/http-foundation": "^6.3 || ^7.0",
"symfony/http-kernel": "^6.3 || ^7.0",
"symfony/routing": "^6.3 || ^7.0",
"symfony/translation": "^6.3 || ^7.0",
"symfony/config": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/event-dispatcher": "^6.4 || ^7.0",
"symfony/http-foundation": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
"symfony/routing": "^6.4 || ^7.0",
"symfony/translation": "^6.4 || ^7.0",
"twig/twig": "^3.0"
},
"require-dev": {
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"symfony/expression-language": "^6.3 || ^7.0",
"symfony/templating": "^6.3 || ^7.0"
"phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^9.6",
"symfony/expression-language": "^6.4 || ^7.0",
"symfony/templating": "^6.4 || ^7.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/KnpPaginatorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Extension\Extension;

final class KnpPaginatorExtension extends Extension
{
Expand Down

0 comments on commit a9cbcb3

Please sign in to comment.