Bump phpunit/phpunit from 10.5.60 to 10.5.62 #57
Annotations
1 error and 10 warnings
|
mutation
Process completed with exit code 1.
|
|
mutation:
src/MaxNodesModule.php#L107
Escaped Mutant for Mutator "Assignment":
@@ @@
$cost = 0;
foreach ($selectionSet as $selection) {
- $cost += match ($selection::class) {
+ $cost = match ($selection::class) {
Field::class => $this->countFieldCost($selection),
FragmentSpread::class => $this->countFragmentSpreadCost($selection),
InlineFragment::class => $this->countInlineFragmentCost($selection),
|
|
mutation:
src/MaxNodesModule.php#L107
Escaped Mutant for Mutator "MatchArmRemoval":
@@ @@
Field::class => $this->countFieldCost($selection),
FragmentSpread::class => $this->countFragmentSpreadCost($selection),
InlineFragment::class => $this->countInlineFragmentCost($selection),
- default => throw new \LogicException('Unknown selection type'),
};
}
|
|
mutation:
src/MaxNodesModule.php#L107
Escaped Mutant for Mutator "MatchArmRemoval":
@@ @@
$cost += match ($selection::class) {
Field::class => $this->countFieldCost($selection),
FragmentSpread::class => $this->countFragmentSpreadCost($selection),
- InlineFragment::class => $this->countInlineFragmentCost($selection),
default => throw new \LogicException('Unknown selection type'),
};
}
|
|
mutation:
src/MaxNodesModule.php#L107
Escaped Mutant for Mutator "MatchArmRemoval":
@@ @@
foreach ($selectionSet as $selection) {
$cost += match ($selection::class) {
Field::class => $this->countFieldCost($selection),
- FragmentSpread::class => $this->countFragmentSpreadCost($selection),
InlineFragment::class => $this->countInlineFragmentCost($selection),
default => throw new \LogicException('Unknown selection type'),
};
|
|
mutation:
src/MaxNodesModule.php#L84
Escaped Mutant for Mutator "Break_":
@@ @@
if (\is_int($argumentRawValue) && $argumentRawValue > 0) {
$multiplier = $argumentRawValue;
- break;
+ continue;
}
}
}
|
|
mutation:
src/MaxNodesModule.php#L81
Escaped Mutant for Mutator "GreaterThan":
@@ @@
if (\in_array($argument->argument->getName(), $this->limitArgumentNames, true)) {
$argumentRawValue = $argument->value->getRawValue();
- if (\is_int($argumentRawValue) && $argumentRawValue > 0) {
+ if (\is_int($argumentRawValue) && $argumentRawValue >= 0) {
$multiplier = $argumentRawValue;
break;
|
|
mutation:
src/MaxDepthModule.php#L73
Escaped Mutant for Mutator "Continue_":
@@ @@
$currentFieldSet = $selection->children;
if ($currentFieldSet === null) {
- continue 2;
+ break;
}
$nextDepth = $fieldDepth + 1;
|
|
mutation:
src/MaxDepthModule.php#L68
Escaped Mutant for Mutator "SharedCaseRemoval":
@@ @@
break;
case FragmentSpread::class:
- // fallthrough
- case InlineFragment::class:
$this->validateDepth($fieldDepth, $selection->children);
-
break;
}
}
|
|
mutation:
src/MaxDepthModule.php#L68
Escaped Mutant for Mutator "SharedCaseRemoval":
@@ @@
$this->validateDepth($nextDepth, $currentFieldSet);
break;
- case FragmentSpread::class:
- // fallthrough
+ // fallthrough
case InlineFragment::class:
$this->validateDepth($fieldDepth, $selection->children);
|
|
mutation:
src/MaxDepthModule.php#L43
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public function processNormalized(NormalizedRequest $request) : NormalizedRequest
{
foreach ($request->operations as $operation) {
- $this->validateDepth(1, $operation->children);
+ $this->validateDepth(0, $operation->children);
}
return $request;
|