Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 33e8ccf

Browse files
ibpavlovDavertMik
authored andcommitted
Report:write compatibility fix (#27)
* Report:write compatibility fix Compatibility with PHPUnit 7.0+ Declaration of Codeception\PHPUnit\ResultPrinter\Report::write($buffer): void should be compatible with PHPUnit\Util\Printer::write(string $buffer): void * Update ConsolePrinter.php
1 parent cde8406 commit 33e8ccf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ConsolePrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
interface ConsolePrinter
1111
{
12-
public function write($buffer);
12+
public function write(string $buffer);
1313

1414
public function printResult(\PHPUnit\Framework\TestResult $result);
1515
}

src/ResultPrinter/Report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function printResult(\PHPUnit\Framework\TestResult $result)
5757
{
5858
}
5959

60-
public function write($buffer) : void
60+
public function write(string $buffer) : void
6161
{
62-
parent::write($buffer);
62+
parent::write($buffer);
6363
}
6464
}

0 commit comments

Comments
 (0)