Skip to content

Commit 45e8d50

Browse files
authored
Merge pull request #23 from infection/drop-php-8-0-support
Drop php < 8.1 support
2 parents 7ac1030 + 58c82ed commit 45e8d50

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
php-version: [ '8.0', '8.1', '8.2' ]
21+
php-version: [ '8.1', '8.2' ]
2222
coverage-driver: [ pcov ]
2323
symfony-require: [ '^5', '^6' ]
2424

.github/workflows/cs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
operating-system: [ ubuntu-latest ]
20-
php-version: [ '8.0' ]
20+
php-version: [ '8.1' ]
2121
check: [ 'cs', 'static-analyze' ]
2222

2323
name: Coding Standards on PHP ${{ matrix.php-version }}

.github/workflows/e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
php-version: [ '8.0', '8.1', '8.2' ]
19+
php-version: [ '8.1', '8.2' ]
2020
coverage-driver: [ pcov ]
2121

2222
name: CI with PHP ${{ matrix.php-version }}, using ${{ matrix.coverage-driver }}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ COMPOSER=$(PHP) $(shell which composer)
2929
# Infection
3030
INFECTION=./.tools/infection.phar
3131
INFECTION_URL="https://github.com/infection/infection/releases/download/0.27.4/infection.phar"
32-
MIN_MSI=70
33-
MIN_COVERED_MSI=76
32+
MIN_MSI=78
33+
MIN_COVERED_MSI=82
3434
INFECTION_ARGS=--min-msi=$(MIN_MSI) --min-covered-msi=$(MIN_COVERED_MSI) --threads=$(JOBS) --log-verbosity=none --no-interaction --no-progress --show-mutations
3535

3636
all: test

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
},
3131
"require": {
32-
"php": "^8.0",
32+
"php": "^8.1",
3333
"infection/abstract-testframework-adapter": "^0.5.0",
3434
"infection/include-interceptor": "^0.2.0",
3535
"symfony/filesystem": "^5.0 || ^6.0",

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.

tests/phpunit/Adapter/CodeceptionAdapterTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function test_it_determines_used_memory_amount(string $output, float $exp
112112
/**
113113
* @return Generator<int, array{0: string, 1: float}>
114114
*/
115-
public function memoryReportProvider(): Generator
115+
public static function memoryReportProvider(): Generator
116116
{
117117
yield ['Memory: 8.00MB', 8.0];
118118

@@ -126,7 +126,7 @@ public function memoryReportProvider(): Generator
126126
/**
127127
* @return Generator<int, array{0: string, 1: bool}>
128128
*/
129-
public function passProvider(): Generator
129+
public static function passProvider(): Generator
130130
{
131131
yield ['OK, but incomplete, skipped, or risky tests!', true];
132132

@@ -135,6 +135,8 @@ public function passProvider(): Generator
135135
yield ['FAILURES!', false];
136136

137137
yield ['ERRORS!', false];
138+
139+
yield ['unhandled string', false];
138140
}
139141

140142
public function test_it_sets_coverage_phpunit_dir(): void

0 commit comments

Comments
 (0)