diff --git a/CHANGELOG.md b/CHANGELOG.md index f8abe0a..721e158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 5.6.0 - 2023-12-02 + +### Added + +- Support for `symfony/var-dumper:~7.0` + +### Fixed + +- Stats are correctly displayed in GitHub Actions even in case of a failure + ## 5.5.4 - 2023-11-01 ### Fixed diff --git a/composer.json b/composer.json index 8de5281..8fbfe22 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "php": "~8.2", "innmind/json": "^1.1", - "symfony/var-dumper": "~6.0", + "symfony/var-dumper": "~6.0|~7.0", "phpunit/phpunit": "~10.0", "phpunit/php-timer": "^6.0", "phpunit/php-code-coverage": "^10.1" diff --git a/src/Runner/Printer/Standard.php b/src/Runner/Printer/Standard.php index 09085de..591ccf7 100644 --- a/src/Runner/Printer/Standard.php +++ b/src/Runner/Printer/Standard.php @@ -80,7 +80,7 @@ public function end(IO $output, IO $error, Stats $stats): void match ($stats->successful()) { true => $output("OK\n$statsToPrint\n"), - false => $error("Failed\n$statsToPrint, Failures: {$stats->failures()}\n"), + false => $output("Failed\n$statsToPrint, Failures: {$stats->failures()}\n"), }; } } diff --git a/tests/Set/CompositeTest.php b/tests/Set/CompositeTest.php index ec1ab17..12eea68 100644 --- a/tests/Set/CompositeTest.php +++ b/tests/Set/CompositeTest.php @@ -373,7 +373,7 @@ public function testShrinksAsFastAsPossible() try { $this ->forAll(Set\Integers::below(0), Set\Integers::above(0)) - ->filter(fn($a, $b) => $a !== 0) + ->filter(static fn($a, $b) => $a !== 0) ->then(function($a, $b) { $this->assertGreaterThanOrEqual( 0,