Skip to content

Commit

Permalink
Drop support for PHP 7.1, require PHPStan 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 28, 2022
1 parent e518535 commit 984056e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
Expand All @@ -38,13 +37,9 @@ jobs:
run: "composer validate"

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"

- name: "Downgrade Doctrine ORM"
if: matrix.php-version == '7.1'
run: "composer require --dev doctrine/orm:^2.7.5 doctrine/lexer:^1.0 --no-update --update-with-dependencies"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"

Expand Down Expand Up @@ -86,7 +81,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
Expand All @@ -107,13 +101,9 @@ jobs:
php-version: "${{ matrix.php-version }}"

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"

- name: "Downgrade Doctrine ORM"
if: matrix.php-version == '7.1'
run: "composer require --dev doctrine/orm:^2.7.5 doctrine/lexer:^1.0 --no-update --update-with-dependencies"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress"
Expand All @@ -133,7 +123,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
Expand All @@ -156,13 +145,9 @@ jobs:
tools: composer:v2

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"

- name: "Downgrade Doctrine ORM"
if: matrix.php-version == '7.1'
run: "composer require --dev doctrine/orm:^2.7.5 doctrine/lexer:^1.0 --no-update --update-with-dependencies"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress"
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"MIT"
],
"require": {
"php": "^7.1 || ^8.0",
"phpstan/phpstan": "^1.4.1"
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.5"
},
"conflict": {
"doctrine/collections": "<1.0",
Expand Down

0 comments on commit 984056e

Please sign in to comment.