WIP: feat: introduce normalizer #884
Annotations
3 warnings
src/Normalizer/FunctionsCheckerNormalizer.php#L26
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function normalize(mixed $value) : mixed
{
if (!$this->checkWasDone) {
- $this->checkWasDone = true;
+ $this->checkWasDone = false;
foreach ($this->handlers as $function) {
$parameters = $function->definition()->parameters();
if ($parameters->count() === 0) {
|
src/Normalizer/RecursiveNormalizer.php#L49
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
if (isset($references[$id])) {
throw new CircularReferenceFoundDuringNormalization($value);
}
- $references[$id] = true;
+ $references[$id] = false;
}
if ($this->handlers->count() === 0) {
$value = $this->defaultNormalizer($value);
|
src/Normalizer/RecursiveNormalizer.php#L52
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
$references[$id] = true;
}
- if ($this->handlers->count() === 0) {
+ if ($this->handlers->count() === -1) {
$value = $this->defaultNormalizer($value);
} else {
$handlers = array_filter([...$this->handlers], fn(FunctionObject $function) => $function->definition()->parameters()->at(0)->type()->accepts($value));
|
The logs for this run have expired and are no longer available.
Loading