Enhancement: Synchronize with ergebnis/php-package-template
#2359
Annotations
4 warnings
Run mutation tests with Xdebug and infection/infection:
src/ChainNormalizer.php#L27
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
private readonly array $normalizers;
public function __construct(Normalizer ...$normalizers)
{
- $this->normalizers = \array_values($normalizers);
+ $this->normalizers = $normalizers;
}
public function normalize(Json $json) : Json
{
|
Run mutation tests with Xdebug and infection/infection:
src/Exception/InvalidIndentStyle.php#L39
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
{
$exception = new self(\sprintf('Style needs to be one of "%s", but "%s" is not.', \implode('", "', $allowedStyles), $style));
$exception->style = $style;
- $exception->allowedStyles = \array_values($allowedStyles);
+ $exception->allowedStyles = $allowedStyles;
return $exception;
}
public function style() : string
|
Run mutation tests with Xdebug and infection/infection:
src/Exception/NormalizedInvalidAccordingToSchema.php#L35
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
{
$exception = new self(\sprintf('Normalized JSON is not valid according to schema "%s".', $schemaUri));
$exception->schemaUri = $schemaUri;
- $exception->errors = \array_values($errors);
+ $exception->errors = $errors;
return $exception;
}
public function schemaUri() : string
|
Run mutation tests with Xdebug and infection/infection:
src/Exception/OriginalInvalidAccordingToSchema.php#L35
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
{
$exception = new self(\sprintf('Original JSON is not valid according to schema "%s".', $schemaUri));
$exception->schemaUri = $schemaUri;
- $exception->errors = \array_values($errors);
+ $exception->errors = $errors;
return $exception;
}
public function schemaUri() : string
|
The logs for this run have expired and are no longer available.
Loading