Bump PHP minimum requirement to 8.0

PHPStan failed on 7.4 after updating to 0.12.99, and I figured it was less hassle to just do this than fix the build. In any case, we stopped shipping 7.4 months ago, and warned at 3.22 release that 7.4 support would soon be dropped.
This commit is contained in:
Dylan K. Taylor
2021-10-09 20:09:42 +01:00
parent 289553fa46
commit 974d08efd6
15 changed files with 29 additions and 205 deletions

View File

@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
image: [ubuntu-20.04]
php: [7.4.24, 8.0.11]
php: [8.0.11]
steps:
- uses: actions/checkout@v2 #needed for build.sh
@ -36,13 +36,8 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- php: 8.0.11
config: phpstan.neon.dist
image: ubuntu-20.04
- php: 7.4.24
config: phpstan.php7.neon
image: ubuntu-20.04
image: [ubuntu-20.04]
php: [8.0.11]
steps:
- uses: actions/checkout@v2
@ -82,7 +77,7 @@ jobs:
run: php composer.phar install --prefer-dist --no-interaction
- name: Run PHPStan
run: ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G -c ${{ matrix.config }}
run: ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G
phpunit:
name: PHPUnit tests
@ -92,7 +87,7 @@ jobs:
fail-fast: false
matrix:
image: [ubuntu-20.04]
php: [7.4.24, 8.0.11]
php: [8.0.11]
steps:
- uses: actions/checkout@v2
@ -142,7 +137,7 @@ jobs:
fail-fast: false
matrix:
image: [ubuntu-20.04]
php: [7.4.24, 8.0.11]
php: [8.0.11]
steps:
- uses: actions/checkout@v2
@ -194,7 +189,7 @@ jobs:
fail-fast: false
matrix:
image: [ubuntu-20.04]
php: [7.4.24, 8.0.11]
php: [8.0.11]
steps:
- uses: actions/checkout@v2

View File

@ -22,8 +22,6 @@
declare(strict_types=1);
const VERSIONS = [
"7.3",
"7.4",
"8.0"
];