Skip to content

Commit 9a12757

Browse files
authored
Merge pull request #534 from ergebnis/feature/php70
Enhancement: Add support for PHP 7.0
2 parents 3170dd1 + bb0a68e commit 9a12757

File tree

59 files changed

+535
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+535
-178
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 (6.5.0, 7.0, highest)"
25+
- context: "Tests (6.5.0, 7.0, lowest)"
2426
- context: "Tests (6.5.0, 7.1, highest)"
2527
- context: "Tests (6.5.0, 7.1, lowest)"
2628
- context: "Tests (6.5.0, 7.2, highest)"

.github/workflows/integrate.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ jobs:
460460
- "6.5.0"
461461

462462
php-version:
463+
- "7.0"
463464
- "7.1"
464465
- "7.2"
465466
- "7.3"
@@ -688,9 +689,13 @@ jobs:
688689
run: "composer config platform.php --ansi --unset"
689690

690691
- name: "Require phpunit/phpunit:^${{ matrix.phpunit-version }}"
691-
if: "matrix.dependencies != 'locked'"
692+
if: "matrix.dependencies != 'locked' && matrix.phpunit-version != '6.5.0'"
692693
run: "composer require phpunit/phpunit:^${{ matrix.phpunit-version }} --ansi --no-interaction --no-progress --update-with-all-dependencies"
693694

695+
- name: "Require fakerphp/faker:^1.9.2 and phpunit/phpunit:^${{ matrix.phpunit-version }}"
696+
if: "matrix.dependencies != 'locked' && matrix.phpunit-version == '6.5.0'"
697+
run: "composer require fakerphp/faker:^1.9.2 phpunit/phpunit:^${{ matrix.phpunit-version }} --ansi --no-interaction --no-progress --update-with-all-dependencies"
698+
694699
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
695700
uses: "ergebnis/.github/actions/composer/[email protected]"
696701
with:

.php-cs-fixer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@
2626

2727
$license->save();
2828

29-
$ruleSet = PhpCsFixer\Config\RuleSet\Php71::create()
29+
$ruleSet = PhpCsFixer\Config\RuleSet\Php70::create()
3030
->withHeader($license->header())
3131
->withRules(PhpCsFixer\Config\Rules::fromArray([
3232
'mb_str_functions' => false,
33-
'void_return' => false,
3433
]));
3534

3635
$config = PhpCsFixer\Config\Factory::fromRuleSet($ruleSet);

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ For a full diff see [`2.13.0...main`][2.13.0...main].
1111
### Changed
1212

1313
- Added support for `phpunit/phpunit:^6.5.0` ([#533]), by [@localheinz]
14+
- Added support for PHP 7.0 ([#534]), by [@localheinz]
1415

1516
## [`2.13.0`][2.13.0]
1617

@@ -318,6 +319,7 @@ For a full diff see [`7afa59c...1.0.0`][7afa59c...1.0.0].
318319
[#531]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/531
319320
[#532]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/532
320321
[#533]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/533
322+
[#534]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/534
321323

322324
[@HypeMC]: https://github.com/HypeMC
323325
[@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.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
27+
"php": "~7.0.0 || ~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": "^6.5.0 || ^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.

psalm-baseline.xml

Lines changed: 345 additions & 0 deletions
Large diffs are not rendered by default.

psalm.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
resolveFromConfigFile="true"
1313
strictBinaryOperands="true"
1414
>
15+
<issueHandlers>
16+
<ReservedWord errorLevel="info" />
17+
</issueHandlers>
18+
1519
<plugins>
1620
<pluginClass class="Psalm\PhpUnitPlugin\Plugin" />
1721
</plugins>

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_71);
26+
$rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_70);
2727
};

src/Collector/Collector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
interface Collector
2222
{
23-
public function collect(SlowTest $slowTest): void;
23+
public function collect(SlowTest $slowTest);
2424

2525
/**
2626
* @phpstan-return list<SlowTest>

0 commit comments

Comments
 (0)