Skip to content

ci: test on php 8.4 (#172) #328

ci: test on php 8.4 (#172)

ci: test on php 8.4 (#172) #328

Triggered via push November 11, 2024 10:02
Status Success
Total duration 26s
Artifacts

infection.yaml

on: push
Infection
17s
Infection
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Infection
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Infection: src/Builder/EnumBuilder.php#L44
Escaped Mutant for Mutator "CastString": @@ @@ /** @return $this */ public function addValue(int|string $value, string|null $name = null, string|null $description = null, string|null $deprecationReason = null): self { - $name ??= (string) $value; + $name ??= $value; if (preg_match(self::VALID_NAME_PATTERN, $name) !== 1) { throw InvalidArgument::invalidNameFormat($name); }
Infection: src/Builder/EnumBuilder.php#L68
Escaped Mutant for Mutator "ArrayItem": @@ @@ /** @phpstan-return EnumTypeConfig */ public function build(): array { - return ['name' => $this->name, 'description' => $this->description, 'values' => $this->values]; + return ['name' => $this->name, 'description' > $this->description, 'values' => $this->values]; } }
Infection: src/Builder/FieldBuilder.php#L74
Escaped Mutant for Mutator "Identical": @@ @@ */ public function addArgument(string $name, $type, string|null $description = null, mixed $defaultValue = null, string|null $deprecationReason = null): self { - if ($this->args === null) { + if ($this->args !== null) { $this->args = []; } $value = ['type' => $type];
Infection: src/Builder/FieldBuilder.php#L122
Escaped Mutant for Mutator "CastString": @@ @@ /** @phpstan-return FieldDefinitionConfig */ public function build(): array { - return ['args' => $this->args, 'name' => $this->name instanceof BackedEnum ? (string) $this->name->value : $this->name, 'description' => $this->description, 'deprecationReason' => $this->deprecationReason, 'resolve' => $this->resolve, 'type' => $this->type]; + return ['args' => $this->args, 'name' => $this->name instanceof BackedEnum ? $this->name->value : $this->name, 'description' => $this->description, 'deprecationReason' => $this->deprecationReason, 'resolve' => $this->resolve, 'type' => $this->type]; } }
Infection: src/Builder/FieldBuilder.php#L126
Escaped Mutant for Mutator "ArrayItem": @@ @@ /** @phpstan-return FieldDefinitionConfig */ public function build(): array { - return ['args' => $this->args, 'name' => $this->name instanceof BackedEnum ? (string) $this->name->value : $this->name, 'description' => $this->description, 'deprecationReason' => $this->deprecationReason, 'resolve' => $this->resolve, 'type' => $this->type]; + return ['args' => $this->args, 'name' => $this->name instanceof BackedEnum ? (string) $this->name->value : $this->name, 'description' => $this->description, 'deprecationReason' => $this->deprecationReason, 'resolve' => $this->resolve, 'type' > $this->type]; } }
Infection: src/Builder/InputFieldBuilder.php#L80
Escaped Mutant for Mutator "ArrayItem": @@ @@ /** @phpstan-return InputObjectFieldConfig */ public function build(): array { - $config = ['name' => $this->name, 'deprecationReason' => $this->deprecationReason, 'description' => $this->description, 'type' => $this->type]; + $config = ['name' => $this->name, 'deprecationReason' => $this->deprecationReason, 'description' => $this->description, 'type' > $this->type]; $property = new ReflectionProperty($this, 'defaultValue'); if ($property->isInitialized($this)) { $config['defaultValue'] = $this->defaultValue;
Infection: src/Builder/InterfaceBuilder.php#L70
Escaped Mutant for Mutator "ArrayItem": @@ @@ /** @phpstan-return InterfaceConfig */ public function build(): array { - return ['name' => $this->name, 'description' => $this->description, 'interfaces' => $this->interfaces, 'fields' => $this->fields, 'resolveType' => $this->resolveType]; + return ['name' => $this->name, 'description' => $this->description, 'interfaces' > $this->interfaces, 'fields' => $this->fields, 'resolveType' => $this->resolveType]; } }
Infection: src/Builder/ObjectBuilder.php#L103
Escaped Mutant for Mutator "ArrayItem": @@ @@ /** @phpstan-return ObjectConfig */ public function build(): array { - return ['name' => $this->name, 'description' => $this->description, 'interfaces' => $this->interfaces, 'fields' => $this->fields, 'resolveField' => $this->fieldResolver]; + return ['name' => $this->name, 'description' => $this->description, 'interfaces' > $this->interfaces, 'fields' => $this->fields, 'resolveField' => $this->fieldResolver]; } }
Infection: src/Error/FormattedError.php#L17
Escaped Mutant for Mutator "InstanceOf_": @@ @@ public static function createFromException(Throwable $exception, int $debugFlag = DebugFlag::NONE, string|null $internalErrorMessage = null): array { $arrayError = parent::createFromException($exception, $debugFlag, $internalErrorMessage); - if ($exception instanceof \GraphQL\Error\Error && $exception->getPrevious() instanceof Error) { + if (true && $exception->getPrevious() instanceof Error) { $arrayError['extensions']['type'] = $exception->getPrevious()->getType(); } return $arrayError; } }
Infection: src/Error/FormattedError.php#L17
Escaped Mutant for Mutator "InstanceOf_": @@ @@ public static function createFromException(Throwable $exception, int $debugFlag = DebugFlag::NONE, string|null $internalErrorMessage = null): array { $arrayError = parent::createFromException($exception, $debugFlag, $internalErrorMessage); - if ($exception instanceof \GraphQL\Error\Error && $exception->getPrevious() instanceof Error) { + if ($exception instanceof \GraphQL\Error\Error && true) { $arrayError['extensions']['type'] = $exception->getPrevious()->getType(); } return $arrayError; } }