From 93863e133ea33fe6bb6cf8ec121a2ca95d233628 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 22 Mar 2023 22:04:35 +0100 Subject: [PATCH] chore: drop PHP 7.2, 7.3,7.4,8.0 and upgrade phpstan --- .github/workflows/lint-and-analyse.yml | 4 ++-- .github/workflows/tests.yml | 2 +- composer.json | 4 ++-- phpstan.neon | 2 -- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint-and-analyse.yml b/.github/workflows/lint-and-analyse.yml index c6a8f56..6ef1b3d 100644 --- a/.github/workflows/lint-and-analyse.yml +++ b/.github/workflows/lint-and-analyse.yml @@ -15,7 +15,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "7.2" + php-version: "8.1" - name: Install dependencies run: composer install --no-interaction - name: Lint files @@ -33,7 +33,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "7.2" + php-version: "8.1" - name: Install dependencies run: composer install --no-interaction - name: Analyse files diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9d2be41..59dcae7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: continue-on-error: ${{ matrix.experimental }} strategy: matrix: - php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] + php-version: ["8.1", "8.2"] os: [ubuntu-latest] experimental: [false] composer-options: [''] diff --git a/composer.json b/composer.json index ddc1649..023a3f0 100644 --- a/composer.json +++ b/composer.json @@ -45,13 +45,13 @@ } }, "require": { - "php": "^7.2.9 || ^8.0", + "php": "^8.1", "twig/twig": "^3", "phpmyadmin/twig-i18n-extension": "^4.0" }, "require-dev": { "phpunit/phpunit": "^7 || ^8 || ^9", - "phpstan/phpstan": "^0.12", + "phpstan/phpstan": "^1.10", "wdes/coding-standard": "^3" }, "config": { diff --git a/phpstan.neon b/phpstan.neon index 66494e1..eb130c1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,8 +1,6 @@ parameters: checkMissingIterableValueType: false level: max - excludes_analyse: - - vendor/* paths: - src/ - example/