Enhancement: Synchronize with ergebnis/php-package-template
#2359
integrate.yaml
on: pull_request
Matrix: Backward-Compatibility Analysis
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
4 warnings
Mutation Tests (8.1, locked):
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
{
|
Mutation Tests (8.1, locked):
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
|
Mutation Tests (8.1, locked):
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
|
Mutation Tests (8.1, locked):
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
|