From a5940d4b430e64ae2159c507677584be6dc3b50f Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Tue, 10 Oct 2023 13:26:16 +0100 Subject: [PATCH] Add phpstan check and fix level 0 issues. --- .github/workflows/check.yml | 19 +++++++++++++++++++ VERSION | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e784d67..699127d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -60,3 +60,22 @@ jobs: with: flags: php-${{ matrix.php-version }}-${{ matrix.os }} name: php-${{ matrix.php-version }}-${{ matrix.os }} + + static-analysis: + name: Static Analysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use php 8.2 + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + - name: Cache module + uses: actions/cache@v3 + with: + path: ~/.composer/cache/ + key: composer-cache + - name: Install phpstan + run: composer require --dev phpstan/phpstan + - name: Analyse files + run: ./vendor/bin/phpstan analyse src test diff --git a/VERSION b/VERSION index 52a89d4..48b2a23 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.23 +1.7.25