chore(deps): update dependency infection/infection to ^0.32.0 #362
Annotations
10 warnings
|
Infection:
src/Exception/InvalidArgument.php#L17
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
final class InvalidArgument extends Exception implements ClientAware
{
- private function __construct(string $message = '', int $code = 0, Throwable|null $previous = null)
+ private function __construct(string $message = '', int $code = -1, Throwable|null $previous = null)
{
parent::__construct($message, $code, $previous);
}
|
|
Infection:
src/Error/FormattedError.php#L20
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
): 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();
}
|
|
Infection:
src/Builder/ObjectBuilder.php#L103
Escaped Mutant for Mutator "ArrayItem":
@@ @@
return [
'name' => $this->name,
'description' => $this->description,
- 'interfaces' => $this->interfaces,
+ 'interfaces' > $this->interfaces,
'fields' => $this->fields,
'resolveField' => $this->fieldResolver,
];
|
|
Infection:
src/Builder/InterfaceBuilder.php#L74
Escaped Mutant for Mutator "ArrayItem":
@@ @@
return [
'name' => $this->name,
'description' => $this->description,
- 'interfaces' => $this->interfaces,
+ 'interfaces' > $this->interfaces,
'fields' => $this->fields,
'resolveType' => $this->resolveType,
];
|
|
Infection:
src/Builder/InputFieldBuilder.php#L80
Escaped Mutant for Mutator "ArrayItem":
@@ @@
'name' => $this->name,
'deprecationReason' => $this->deprecationReason,
'description' => $this->description,
- 'type' => $this->type,
+ 'type' > $this->type,
];
$property = new ReflectionProperty($this, 'defaultValue');
|
|
Infection:
src/Builder/FieldBuilder.php#L126
Escaped Mutant for Mutator "ArrayItem":
@@ @@
'description' => $this->description,
'deprecationReason' => $this->deprecationReason,
'resolve' => $this->resolve,
- 'type' => $this->type,
+ 'type' > $this->type,
];
}
}
|
|
Infection:
src/Builder/FieldBuilder.php#L122
Escaped Mutant for Mutator "CastString":
@@ @@
{
return [
'args' => $this->args,
- 'name' => $this->name instanceof BackedEnum ? (string) $this->name->value : $this->name,
+ 'name' => $this->name instanceof BackedEnum ? $this->name->value : $this->name,
'description' => $this->description,
'deprecationReason' => $this->deprecationReason,
'resolve' => $this->resolve,
|
|
Infection:
src/Builder/FieldBuilder.php#L74
Escaped Mutant for Mutator "Identical":
@@ @@
mixed $defaultValue = null,
string|null $deprecationReason = null,
): self {
- if ($this->args === null) {
+ if ($this->args !== null) {
$this->args = [];
}
|
|
Infection:
src/Builder/EnumBuilder.php#L68
Escaped Mutant for Mutator "ArrayItem":
@@ @@
{
return [
'name' => $this->name,
- 'description' => $this->description,
+ 'description' > $this->description,
'values' => $this->values,
];
}
|
|
Infection:
src/Builder/EnumBuilder.php#L44
Escaped Mutant for Mutator "CastString":
@@ @@
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);
}
|