Skip to content

Commit 4d7f976

Browse files
committed
Drop support for PHP 7.2 and 7.3
1 parent a252846 commit 4d7f976

File tree

4 files changed

+6
-61
lines changed

4 files changed

+6
-61
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
php-version:
28-
- "7.2"
29-
- "7.3"
3028
- "7.4"
3129
- "8.0"
3230
- "8.1"

.github/workflows/reflection-golden-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
fail-fast: false
6666
matrix:
6767
php-version:
68-
- "7.3"
6968
- "7.4"
7069
- "8.0"
7170
- "8.1"

.github/workflows/static-analysis.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
php-version:
34-
- "7.2"
35-
- "7.3"
3634
- "7.4"
3735
- "8.0"
3836
- "8.1"
@@ -61,18 +59,12 @@ jobs:
6159
shell: bash
6260
run: "vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"
6361

64-
- name: "Paratest patch"
65-
if: matrix.php-version == '7.2'
66-
run: composer config extra.patches.brianium/paratest --json --merge '["patches/paratest.patch"]'
67-
shell: bash
68-
69-
- name: "Downgrade PHPUnit"
70-
if: matrix.php-version == '7.2'
71-
run: "composer require --dev phpunit/phpunit:^8.5.31 brianium/paratest:^4.0 composer/semver:^1.2 --update-with-dependencies --ignore-platform-reqs"
72-
73-
- name: "Update PHPUnit"
74-
if: matrix.php-version != '7.2' && matrix.php-version != '7.3'
75-
run: "composer update phpunit/phpunit -W"
62+
- name: "Upload transformed sources"
63+
if: matrix.php-version == '7.4'
64+
uses: actions/upload-artifact@v3
65+
with:
66+
name: transformed-src
67+
path: src
7668

7769
- name: "PHPStan"
7870
run: "make phpstan"

.github/workflows/tests.yml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
php-version:
38-
- "7.3"
3938
- "7.4"
4039
- "8.0"
4140
- "8.1"
@@ -162,46 +161,3 @@ jobs:
162161

163162
- name: "Tests"
164163
run: "${{ matrix.script }}"
165-
166-
tests-old-phpunit:
167-
name: "Tests with old PHPUnit"
168-
runs-on: ${{ matrix.operating-system }}
169-
timeout-minutes: 60
170-
171-
strategy:
172-
fail-fast: false
173-
matrix:
174-
php-version:
175-
- "7.2"
176-
operating-system: [ ubuntu-latest ]
177-
178-
steps:
179-
- name: "Checkout"
180-
uses: actions/checkout@v4
181-
182-
- name: "Install PHP"
183-
uses: "shivammathur/setup-php@v2"
184-
with:
185-
coverage: "none"
186-
php-version: "${{ matrix.php-version }}"
187-
tools: pecl
188-
extensions: ds,mbstring
189-
ini-file: development
190-
ini-values: memory_limit=2G
191-
192-
- name: "Install dependencies"
193-
run: "composer install --no-interaction --no-progress"
194-
195-
- name: "Transform source code"
196-
shell: bash
197-
run: "vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"
198-
199-
- name: "Paratest patch"
200-
run: composer config extra.patches.brianium/paratest --json --merge '["patches/paratest.patch"]'
201-
shell: bash
202-
203-
- name: "Downgrade PHPUnit"
204-
run: "composer require --dev phpunit/phpunit:^8.5.31 brianium/paratest:^4.0 composer/semver:^1.2 --update-with-dependencies --ignore-platform-reqs"
205-
206-
- name: "Tests"
207-
run: "make tests-coverage"

0 commit comments

Comments
 (0)