build: Add rector as part of the process #1515
unit-tests.yaml
on: pull_request
Matrix: infection
Matrix: unit-tests
Unit tests status
0s
Annotations
2 errors and 2 warnings
Infection (PHP 8.2)
Process completed with exit code 2.
|
Unit tests status
Process completed with exit code 1.
|
Infection (PHP 8.2):
src/Console/Application.php#L46
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
private readonly string $version;
private readonly string $releaseDate;
private string $header;
- public function __construct(private readonly string $name = 'Box', ?string $version = null, string $releaseDate = '@release-date@', private readonly bool $autoExit = true, private readonly bool $catchExceptions = true)
+ public function __construct(private readonly string $name = 'Box', ?string $version = null, string $releaseDate = '@release-date@', private readonly bool $autoExit = false, private readonly bool $catchExceptions = true)
{
$this->version = $version ?? get_box_version();
$this->releaseDate = !str_contains($releaseDate, '@') ? $releaseDate : '';
|
Infection (PHP 8.2):
src/Console/Application.php#L47
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
private readonly string $version;
private readonly string $releaseDate;
private string $header;
- public function __construct(private readonly string $name = 'Box', ?string $version = null, string $releaseDate = '@release-date@', private readonly bool $autoExit = true, private readonly bool $catchExceptions = true)
+ public function __construct(private readonly string $name = 'Box', ?string $version = null, string $releaseDate = '@release-date@', private readonly bool $autoExit = true, private readonly bool $catchExceptions = false)
{
$this->version = $version ?? get_box_version();
$this->releaseDate = !str_contains($releaseDate, '@') ? $releaseDate : '';
|