From d21ed9d8edbc9f5ee8332434b24fe03f9cf2ecf0 Mon Sep 17 00:00:00 2001 From: smiley Date: Wed, 8 Mar 2023 23:03:38 +0100 Subject: [PATCH] :octocat: run phan on matrix.php-version --- .github/workflows/tests.yml | 2 +- .phan/config.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d14651c48..64bac5130 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -47,7 +47,7 @@ jobs: uses: ramsey/composer-install@v2 - name: "Run phan" - run: php vendor/bin/phan + run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }} build-docs: diff --git a/.phan/config.php b/.phan/config.php index 6f19c1fb1..ccd457662 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -14,7 +14,8 @@ return [ // Note that the **only** effect of choosing `'5.6'` is to infer // that functions removed in php 7.0 exist. // (See `backward_compatibility_checks` for additional options) - 'target_php_version' => '7.4', + 'target_php_version' => null, + 'minimum_target_php_version' => '7.4', // A list of directories that should be parsed for class and // method information. After excluding the directories