Skip to content

Merge pull request #93 from graphpql/dependabot/composer/infinityloop… #156

Merge pull request #93 from graphpql/dependabot/composer/infinityloop…

Merge pull request #93 from graphpql/dependabot/composer/infinityloop… #156

Triggered via push December 1, 2023 08:19
Status Success
Total duration 51s
Artifacts

php.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
codestyle
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
mutation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
mutation: src/Deserializer.php#L22
Escaped Mutant for Mutator "CastObject": --- Original +++ New @@ @@ } public function deserializeNormalizedRequest(string $data) : \Graphpinator\Normalizer\NormalizedRequest { - $operationSet = (object) \Infinityloop\Utils\Json::fromString($data)->toNative(); + $operationSet = \Infinityloop\Utils\Json::fromString($data)->toNative(); return new \Graphpinator\Normalizer\NormalizedRequest($this->deserializeOperationSet($operationSet)); } private function deserializeOperationSet(\stdClass $operationSet) : \Graphpinator\Normalizer\Operation\OperationSet
mutation: src/Deserializer.php#L114
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $typeCond = $this->deserializeType($fragmentSpread->typeCond); $this->typeStack->push($typeCond); $return = new \Graphpinator\Normalizer\Selection\FragmentSpread($fragmentSpread->fragmentName, $this->deserializeSelectionSet((object) $fragmentSpread->selectionSet), $this->deserializeDirectiveSet((object) $fragmentSpread->directiveSet), $typeCond); - $this->typeStack->pop(); + return $return; } private function deserializeInlineFragment(\stdClass $inlineSpread) : \Graphpinator\Normalizer\Selection\InlineFragment
mutation: src/Deserializer.php#L131
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $typeCond = $this->deserializeType($inlineSpread->typeCond); $this->typeStack->push($typeCond ?? $this->typeStack->top()); $return = new \Graphpinator\Normalizer\Selection\InlineFragment($this->deserializeSelectionSet((object) $inlineSpread->selectionSet), $this->deserializeDirectiveSet((object) $inlineSpread->directiveSet), $typeCond); - $this->typeStack->pop(); + return $return; } private function deserializeDirectiveSet(\stdClass $directiveSet) : \Graphpinator\Normalizer\Directive\DirectiveSet
mutation: src/Deserializer.php#L180
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $argument = $this->currentArguments->offsetGet($argumentValue->argument); $this->typeStack->push($argument->getType()); $return = new \Graphpinator\Value\ArgumentValue($argument, $this->deserializeInputedValue($argumentValue->value), true); - $this->typeStack->pop(); + return $return; } private function deserializeVariableSet(\stdClass $variableSet) : \Graphpinator\Normalizer\Variable\VariableSet
mutation: src/Deserializer.php#L224
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ } private function deserializeScalarValue(\stdClass $inputedValue) : \Graphpinator\Value\ScalarValue { - $scalarValue = new \Graphpinator\Value\ScalarValue($this->deserializeType($inputedValue->type), $inputedValue->value, false); + $scalarValue = new \Graphpinator\Value\ScalarValue($this->deserializeType($inputedValue->type), $inputedValue->value, true); if (isset($inputedValue->resolverValue)) { $scalarValue->setResolverValue(\unserialize($inputedValue->resolverValue)); }
mutation: src/Deserializer.php#L276
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ return match ($inputedValue->valueType) { \Graphpinator\Value\NullInputedValue::class => new \Graphpinator\Value\NullInputedValue($this->deserializeType($inputedValue->type)), \Graphpinator\Value\ScalarValue::class => $this->deserializeScalarValue($inputedValue), - \Graphpinator\Value\EnumValue::class => new \Graphpinator\Value\EnumValue($this->deserializeType($inputedValue->type), $inputedValue->value, false), + \Graphpinator\Value\EnumValue::class => new \Graphpinator\Value\EnumValue($this->deserializeType($inputedValue->type), $inputedValue->value, true), \Graphpinator\Value\VariableValue::class => new \Graphpinator\Value\VariableValue($this->deserializeType($inputedValue->type), $this->currentVariableSet->offsetGet($inputedValue->variableName)), \Graphpinator\Value\ListInputedValue::class => $this->deserializeListInputedValue($inputedValue), \Graphpinator\Value\InputValue::class => $this->deserializeInputValue($inputedValue),
mutation: src/Serializer.php#L123
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } private function serializeInlineFragment(\Graphpinator\Normalizer\Selection\InlineFragment $inlineFragment) : array { - return ['selectionType' => \Graphpinator\Normalizer\Selection\InlineFragment::class, 'selectionSet' => $this->serializeSelectionSet($inlineFragment->getSelections()), 'directiveSet' => $this->serializeDirectiveSet($inlineFragment->getDirectives()), 'typeCond' => $inlineFragment->getTypeCondition() instanceof \Graphpinator\Typesystem\Contract\TypeConditionable ? $this->serializeType($inlineFragment->getTypeCondition()) : null]; + return ['selectionType' => \Graphpinator\Normalizer\Selection\InlineFragment::class, 'selectionSet' => $this->serializeSelectionSet($inlineFragment->getSelections()), 'directiveSet' => $this->serializeDirectiveSet($inlineFragment->getDirectives()), 'typeCond' => true ? $this->serializeType($inlineFragment->getTypeCondition()) : null]; } private function serializeArgumentValueSet(\Graphpinator\Value\ArgumentValueSet $argumentValueSet) : array {