Skip to content

Commit 323dff9

Browse files
committed
Enhancement: Add support for PHP 7.1
1 parent 787770d commit 323dff9

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

.github/settings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ branches:
2121
- context: "Refactoring (7.4, locked)"
2222
- context: "Security Analysis (7.4, locked)"
2323
- context: "Static Code Analysis (7.4, locked)"
24+
- context: "Tests (7.5.0, 7.1, highest)"
25+
- context: "Tests (7.5.0, 7.1, lowest)"
2426
- context: "Tests (7.5.0, 7.2, highest)"
2527
- context: "Tests (7.5.0, 7.2, lowest)"
2628
- context: "Tests (7.5.0, 7.3, highest)"

.github/workflows/integrate.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
5959

6060
- name: "Remove incompatible dependencies with composer"
61-
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit vimeo/psalm --ansi --dev --no-interaction --no-progress"
61+
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit rector/rector vimeo/psalm --ansi --dev --no-interaction --no-progress"
6262

6363
- name: "Require phpunit/phpunit:^${{ matrix.phpunit-version }}"
6464
run: "composer require phpunit/phpunit:^${{ matrix.phpunit-version }} --ansi --no-interaction --no-progress --update-with-all-dependencies"
@@ -249,7 +249,7 @@ jobs:
249249
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
250250

251251
- name: "Remove incompatible dependencies with composer"
252-
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit vimeo/psalm --ansi --dev --no-interaction --no-progress"
252+
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit rector/rector vimeo/psalm --ansi --dev --no-interaction --no-progress"
253253

254254
- name: "Remove phpunit/phpunit with composer"
255255
run: "composer remove phpunit/phpunit --ansi --no-interaction --ignore-platform-reqs --no-progress"
@@ -460,6 +460,7 @@ jobs:
460460
- "7.5.0"
461461

462462
php-version:
463+
- "7.1"
463464
- "7.2"
464465
- "7.3"
465466
- "7.4"
@@ -648,7 +649,7 @@ jobs:
648649

649650
- name: "Remove incompatible dependencies with composer"
650651
if: "matrix.dependencies != 'locked'"
651-
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit vimeo/psalm --ansi --dev --no-interaction --no-progress"
652+
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit rector/rector vimeo/psalm --ansi --dev --no-interaction --no-progress"
652653

653654
- name: "Remove platform configuration with composer"
654655
if: "matrix.dependencies != 'locked'"

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
5757

5858
- name: "Remove incompatible dependencies with composer"
59-
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit vimeo/psalm --ansi --dev --no-interaction --no-progress"
59+
run: "composer remove ergebnis/composer-normalize ergebnis/license ergebnis/php-cs-fixer-config psalm/plugin-phpunit rector/rector vimeo/psalm --ansi --dev --no-interaction --no-progress"
6060

6161
- name: "Remove phpunit/phpunit with composer"
6262
run: "composer remove phpunit/phpunit --ansi --no-interaction --ignore-platform-reqs --no-progress"

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
$license->save();
2828

29-
$ruleSet = PhpCsFixer\Config\RuleSet\Php72::create()
29+
$ruleSet = PhpCsFixer\Config\RuleSet\Php71::create()
3030
->withHeader($license->header())
3131
->withRules(PhpCsFixer\Config\Rules::fromArray([
3232
'mb_str_functions' => false,

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`2.12.0...main`][2.12.0...main].
1010

11+
### Changed
12+
13+
- Added support for PHP 7.1 ([#532]), by [@localheinz]
14+
1115
## [`2.12.0`][2.12.0]
1216

1317
For a full diff see [`2.11.0...2.12.0`][2.11.0...2.12.0].
@@ -302,6 +306,7 @@ For a full diff see [`7afa59c...1.0.0`][7afa59c...1.0.0].
302306
[#494]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/494
303307
[#495]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/495
304308
[#531]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/531
309+
[#532]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/532
305310

306311
[@HypeMC]: https://github.com/HypeMC
307312
[@localheinz]: https://github.com/localheinz

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"security": "https://github.com/ergebnis/phpunit-slow-test-detector/blob/main/.github/SECURITY.md"
2525
},
2626
"require": {
27-
"php": "~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
27+
"php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
2828
"phpunit/phpunit": "^7.5.0 || ^8.5.19 || ^9.0.0 || ^10.0.0 || ^11.0.0"
2929
},
3030
"require-dev": {

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
__DIR__ . '/test/',
2424
]);
2525

26-
$rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_72);
26+
$rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_71);
2727
};

0 commit comments

Comments
 (0)