From 7192d9266da9212b6e7b135462640df4c8b8a403 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 2 Dec 2025 16:41:26 +0100 Subject: [PATCH] test with latest ubuntu --- .github/workflows/test-application.yaml | 5 +++-- .gitignore | 1 + composer.json | 9 +++++---- phpstan.neon.dist | 3 ++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 1d948673..84c1c155 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -12,7 +12,7 @@ on: jobs: test: name: 'PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-version }} ${{ matrix.dependencies}}' - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: SYMFONY_DEPRECATIONS_HELPER: weak SYMFONY_REQUIRE: ${{ matrix.symfony-version }} @@ -26,7 +26,8 @@ jobs: - php-version: '8.1' - php-version: '8.2' - php-version: '8.3' - symfony-version: '7.0.*' + - php-version: '8.4' + - php-version: '8.5' steps: - name: Checkout project diff --git a/.gitignore b/.gitignore index 0b4c0b10..2f7e6376 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ vendor tests/Fixtures/App/var/ .phpunit.result.cache .php-cs-fixer.cache +phpstan.neon diff --git a/composer.json b/composer.json index 6290600a..c4c886d2 100644 --- a/composer.json +++ b/composer.json @@ -26,10 +26,10 @@ "doctrine/phpcr-bundle": "^3.0", "doctrine/phpcr-odm": "^2.0", "jackalope/jackalope-doctrine-dbal": "^2.0", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-doctrine": "^1.3", - "phpstan/phpstan-phpunit": "^1.3", - "phpstan/phpstan-symfony": "^1.3", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-doctrine": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-symfony": "^2.0", "phpunit/phpunit": "^9.5.28", "matthiasnoback/symfony-dependency-injection-test": "^4.1.0 || ^5.1.0", "matthiasnoback/symfony-config-test": "^4.1.0 || ^5.1.0", @@ -40,6 +40,7 @@ "symfony/serializer": "^6.4 || ^7.0", "symfony/translation": "^6.4 || ^7.0", "symfony/validator": "^6.4 || ^7.0", + "symfony/var-exporter": "^6.4 || ^7.0", "symfony/twig-bundle": "^6.4 || ^7.0", "symfony-cmf/testing": "5.0.2", "twig/twig": "^2.4.4 || ^3.0" diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 22e66521..f92872e2 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -10,6 +10,7 @@ parameters: - src/ - tests/ excludePaths: - - tests/Fixtures/App/var/ +# locally you want to exclude the var directory +# - tests/Fixtures/App/var/ - tests/Fixtures/App/config/ - tests/Fixtures/fixtures/config/