Skip to content

Commit a0d1248

Browse files
committed
Drop PHP 7.1 support
1 parent 99951ac commit a0d1248

File tree

6 files changed

+1
-40
lines changed

6 files changed

+1
-40
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
php-version:
24-
- "7.1"
2524
- "7.2"
2625
- "7.3"
2726
- "7.4"

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
php-version:
28-
- "7.1"
2928
- "7.2"
3029
- "7.3"
3130
- "7.4"
@@ -72,7 +71,7 @@ jobs:
7271
extensions: mbstring
7372

7473
- name: "Downgrade PHPUnit"
75-
if: matrix.php-version == '7.1' || matrix.php-version == '7.2'
74+
if: matrix.php-version == '7.2'
7675
run: "composer require --dev phpunit/phpunit:^7.5.20 brianium/paratest:^4.0 --update-with-dependencies --ignore-platform-reqs"
7776

7877
- name: "PHPStan"

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ jobs:
115115
fail-fast: false
116116
matrix:
117117
php-version:
118-
- "7.1"
119118
- "7.2"
120119
operating-system: [ ubuntu-latest, windows-latest ]
121120
script:

build/rector-downgrade-vendor.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

build/transform-source

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ set -o nounset
77
export TARGET_PHP_VERSION=$1
88

99
vendor/bin/rector process src tests/PHPStan tests/e2e -c build/rector-downgrade.php --no-diffs
10-
11-
vendor/bin/rector process vendor/symfony vendor/nette -c build/rector-downgrade-vendor.php --no-diffs || true

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,8 @@ public function testCallToWeirdFunctions(): void
270270
$this->analyse([__DIR__ . '/data/call-to-weird-functions.php'], $errors);
271271
}
272272

273-
/**
274-
* @requires PHP 7.1.1
275-
*/
276273
public function testUnpackOnAfter711(): void
277274
{
278-
if (!self::$useStaticReflectionProvider && PHP_VERSION_ID < 70101) {
279-
$this->markTestSkipped('This test requires PHP >= 7.1.1');
280-
}
281275
$this->analyse([__DIR__ . '/data/unpack.php'], [
282276
[
283277
'Function unpack invoked with 0 parameters, 2-3 required.',

0 commit comments

Comments
 (0)