chore(deps): update dependency infection/infection to ^0.29.0 #314
Annotations
11 warnings
Infection
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Infection:
src/Builder/EnumBuilder.php#L44
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
/** @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":
--- Original
+++ New
@@ @@
/** @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#L73
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
*/
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#L125
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
/** @phpstan-return FieldDefinitionConfig */
public function build(): array
{
- return ['args' => $this->args, 'name' => $this->name, 'description' => $this->description, 'deprecationReason' => $this->deprecationReason, 'resolve' => $this->resolve, 'type' => $this->type];
+ return ['args' => $this->args, 'name' => $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":
--- Original
+++ New
@@ @@
/** @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":
--- Original
+++ New
@@ @@
/** @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":
--- Original
+++ New
@@ @@
/** @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#L16
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
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#L16
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
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;
}
}
|
Infection:
src/Error/FormattedError.php#L16
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
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 || $exception->getPrevious() instanceof Error) {
$arrayError['extensions']['type'] = $exception->getPrevious()->getType();
}
return $arrayError;
}
}
|