Skip to content

Commit 8d2c31b

Browse files
staabmdg
authored andcommitted
support for PHP 8.5
1 parent ad11b7f commit 8d2c31b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest, macOS-latest]
11-
php: ['8.0', '8.1', '8.2', '8.3', '8.4']
11+
php: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1212

1313
fail-fast: false
1414

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"php": "8.0 - 8.4"
22+
"php": "8.0 - 8.5"
2323
},
2424
"require-dev": {
2525
"ext-simplexml": "*",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ composer require nette/tester --dev
4040

4141
Alternatively, you can download the [tester.phar](https://github.com/nette/tester/releases) file.
4242

43-
Nette Tester 2.5 is compatible with PHP 8.0 to 8.4. Collecting and processing code coverage information depends on Xdebug or PCOV extension, or PHPDBG SAPI.
43+
Nette Tester 2.5 is compatible with PHP 8.0 to 8.5. Collecting and processing code coverage information depends on Xdebug or PCOV extension, or PHPDBG SAPI.
4444

4545
 <!---->
4646

src/CodeCoverage/Generators/AbstractGenerator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ public function render(?string $file = null): void
7070
throw new \Exception("Unable to write to file '$file'.");
7171
}
7272

73-
ob_start(function (string $buffer) use ($handle) { fwrite($handle, $buffer); }, 4096);
73+
ob_start(function (string $buffer) use ($handle) {
74+
fwrite($handle, $buffer);
75+
return '';
76+
}, 4096);
7477
try {
7578
$this->renderSelf();
7679
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)