Skip to content

support backed enum #107

support backed enum

support backed enum #107

Triggered via push February 5, 2025 13:00
Status Success
Total duration 1m 5s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

40 warnings
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L291
Escaped Mutant for Mutator "Break_": @@ @@ $this->errors[] = $e->getMessage(); } } - break; + continue; } if ($this->isSkipOptional($name)) { continue;
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L351
Escaped Mutant for Mutator "LogicalOr": @@ @@ { foreach ($cast as $key => $value) { $key = strval($key); - if (str_contains($key, "\x00") || in_array($key, $this->reflected, true)) { + if (str_contains($key, "\x00") && in_array($key, $this->reflected, true)) { continue; } $array[$key] = $value;
PHP 8.3 test on ubuntu-24.04: src/Attributes/BoolAttr.php#L33
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private BoolParameterInterface $parameter; - public function __construct(string $description = '', ?bool $default = null, bool $sensitive = false) + public function __construct(string $description = '', ?bool $default = null, bool $sensitive = true) { $this->parameter = bool(description: $description, default: $default, sensitive: $sensitive); }
PHP 8.3 test on ubuntu-24.04: src/Attributes/FloatAttr.php#L40
Escaped Mutant for Mutator "FalseValue": @@ @@ * @param float[] $accept * @param float[] $reject */ - public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = false) + public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = true) { $this->parameter = float(description: $description, min: $min, max: $max, accept: $accept, reject: $reject, sensitive: $sensitive); }
PHP 8.3 test on ubuntu-24.04: src/Attributes/IterableAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private IterableParameterInterface $parameter; - public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = false) + public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = true) { $this->parameter = iterable(V: $V->parameter(), K: $K?->parameter(), description: $description, sensitive: $sensitive); }
PHP 8.3 test on ubuntu-24.04: src/Attributes/StringAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private StringParameterInterface $parameter; - public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = false) + public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = true) { $this->parameter = string(regex: $pattern, description: $description, sensitive: $sensitive); }
PHP 8.3 test on ubuntu-24.04: src/Parameters.php#L76
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withIsVariadic(bool $flag): ParametersInterface { - $new = clone $this; + $new = $this; $new->isVariadic = $flag; return $new; }
PHP 8.3 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L81
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($this->type instanceof ReflectionUnionType) { $types = []; foreach ($this->type->getTypes() as $type) { - if ($type instanceof ReflectionIntersectionType) { + if (false) { continue; } $types[] = $type->getName();
PHP 8.3 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L121
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if (method_exists($reflection, 'getName')) { return $reflection->getName(); } - if ($reflection instanceof ReflectionUnionType) { + if (true) { $types = []; foreach ($reflection->getTypes() as $type) { $types[] = $this->getTypeHint($type);
PHP 8.3 test on ubuntu-24.04: src/Traits/AttrTrait.php#L18
Escaped Mutant for Mutator "TrueValue": @@ @@ trait AttrTrait { - public function withIsSensitive(bool $isSensitive = true): static + public function withIsSensitive(bool $isSensitive = false): static { $new = clone $this; // @phpstan-ignore-next-line
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L291
Escaped Mutant for Mutator "Break_": @@ @@ $this->errors[] = $e->getMessage(); } } - break; + continue; } if ($this->isSkipOptional($name)) { continue;
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L351
Escaped Mutant for Mutator "LogicalOr": @@ @@ { foreach ($cast as $key => $value) { $key = strval($key); - if (str_contains($key, "\x00") || in_array($key, $this->reflected, true)) { + if (str_contains($key, "\x00") && in_array($key, $this->reflected, true)) { continue; } $array[$key] = $value;
PHP 8.1 test on ubuntu-24.04: src/Attributes/BoolAttr.php#L33
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private BoolParameterInterface $parameter; - public function __construct(string $description = '', ?bool $default = null, bool $sensitive = false) + public function __construct(string $description = '', ?bool $default = null, bool $sensitive = true) { $this->parameter = bool(description: $description, default: $default, sensitive: $sensitive); }
PHP 8.1 test on ubuntu-24.04: src/Attributes/FloatAttr.php#L40
Escaped Mutant for Mutator "FalseValue": @@ @@ * @param float[] $accept * @param float[] $reject */ - public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = false) + public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = true) { $this->parameter = float(description: $description, min: $min, max: $max, accept: $accept, reject: $reject, sensitive: $sensitive); }
PHP 8.1 test on ubuntu-24.04: src/Attributes/IterableAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private IterableParameterInterface $parameter; - public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = false) + public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = true) { $this->parameter = iterable(V: $V->parameter(), K: $K?->parameter(), description: $description, sensitive: $sensitive); }
PHP 8.1 test on ubuntu-24.04: src/Attributes/StringAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private StringParameterInterface $parameter; - public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = false) + public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = true) { $this->parameter = string(regex: $pattern, description: $description, sensitive: $sensitive); }
PHP 8.1 test on ubuntu-24.04: src/Parameters.php#L76
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withIsVariadic(bool $flag): ParametersInterface { - $new = clone $this; + $new = $this; $new->isVariadic = $flag; return $new; }
PHP 8.1 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L81
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($this->type instanceof ReflectionUnionType) { $types = []; foreach ($this->type->getTypes() as $type) { - if ($type instanceof ReflectionIntersectionType) { + if (false) { continue; } $types[] = $type->getName();
PHP 8.1 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L121
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if (method_exists($reflection, 'getName')) { return $reflection->getName(); } - if ($reflection instanceof ReflectionUnionType) { + if (true) { $types = []; foreach ($reflection->getTypes() as $type) { $types[] = $this->getTypeHint($type);
PHP 8.1 test on ubuntu-24.04: src/Traits/AttrTrait.php#L18
Escaped Mutant for Mutator "TrueValue": @@ @@ trait AttrTrait { - public function withIsSensitive(bool $isSensitive = true): static + public function withIsSensitive(bool $isSensitive = false): static { $new = clone $this; // @phpstan-ignore-next-line
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L291
Escaped Mutant for Mutator "Break_": @@ @@ $this->errors[] = $e->getMessage(); } } - break; + continue; } if ($this->isSkipOptional($name)) { continue;
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L351
Escaped Mutant for Mutator "LogicalOr": @@ @@ { foreach ($cast as $key => $value) { $key = strval($key); - if (str_contains($key, "\x00") || in_array($key, $this->reflected, true)) { + if (str_contains($key, "\x00") && in_array($key, $this->reflected, true)) { continue; } $array[$key] = $value;
PHP 8.2 test on ubuntu-24.04: src/Attributes/BoolAttr.php#L33
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private BoolParameterInterface $parameter; - public function __construct(string $description = '', ?bool $default = null, bool $sensitive = false) + public function __construct(string $description = '', ?bool $default = null, bool $sensitive = true) { $this->parameter = bool(description: $description, default: $default, sensitive: $sensitive); }
PHP 8.2 test on ubuntu-24.04: src/Attributes/FloatAttr.php#L40
Escaped Mutant for Mutator "FalseValue": @@ @@ * @param float[] $accept * @param float[] $reject */ - public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = false) + public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = true) { $this->parameter = float(description: $description, min: $min, max: $max, accept: $accept, reject: $reject, sensitive: $sensitive); }
PHP 8.2 test on ubuntu-24.04: src/Attributes/IterableAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private IterableParameterInterface $parameter; - public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = false) + public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = true) { $this->parameter = iterable(V: $V->parameter(), K: $K?->parameter(), description: $description, sensitive: $sensitive); }
PHP 8.2 test on ubuntu-24.04: src/Attributes/StringAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private StringParameterInterface $parameter; - public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = false) + public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = true) { $this->parameter = string(regex: $pattern, description: $description, sensitive: $sensitive); }
PHP 8.2 test on ubuntu-24.04: src/Parameters.php#L76
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withIsVariadic(bool $flag): ParametersInterface { - $new = clone $this; + $new = $this; $new->isVariadic = $flag; return $new; }
PHP 8.2 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L81
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($this->type instanceof ReflectionUnionType) { $types = []; foreach ($this->type->getTypes() as $type) { - if ($type instanceof ReflectionIntersectionType) { + if (false) { continue; } $types[] = $type->getName();
PHP 8.2 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L121
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if (method_exists($reflection, 'getName')) { return $reflection->getName(); } - if ($reflection instanceof ReflectionUnionType) { + if (true) { $types = []; foreach ($reflection->getTypes() as $type) { $types[] = $this->getTypeHint($type);
PHP 8.2 test on ubuntu-24.04: src/Traits/AttrTrait.php#L18
Escaped Mutant for Mutator "TrueValue": @@ @@ trait AttrTrait { - public function withIsSensitive(bool $isSensitive = true): static + public function withIsSensitive(bool $isSensitive = false): static { $new = clone $this; // @phpstan-ignore-next-line
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L291
Escaped Mutant for Mutator "Break_": @@ @@ $this->errors[] = $e->getMessage(); } } - break; + continue; } if ($this->isSkipOptional($name)) { continue;
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L351
Escaped Mutant for Mutator "LogicalOr": @@ @@ { foreach ($cast as $key => $value) { $key = strval($key); - if (str_contains($key, "\x00") || in_array($key, $this->reflected, true)) { + if (str_contains($key, "\x00") && in_array($key, $this->reflected, true)) { continue; } $array[$key] = $value;
PHP 8.4 test on ubuntu-24.04: src/Attributes/BoolAttr.php#L33
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private BoolParameterInterface $parameter; - public function __construct(string $description = '', ?bool $default = null, bool $sensitive = false) + public function __construct(string $description = '', ?bool $default = null, bool $sensitive = true) { $this->parameter = bool(description: $description, default: $default, sensitive: $sensitive); }
PHP 8.4 test on ubuntu-24.04: src/Attributes/FloatAttr.php#L40
Escaped Mutant for Mutator "FalseValue": @@ @@ * @param float[] $accept * @param float[] $reject */ - public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = false) + public function __construct(string $description = '', ?float $min = null, ?float $max = null, array $accept = [], array $reject = [], bool $sensitive = true) { $this->parameter = float(description: $description, min: $min, max: $max, accept: $accept, reject: $reject, sensitive: $sensitive); }
PHP 8.4 test on ubuntu-24.04: src/Attributes/IterableAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private IterableParameterInterface $parameter; - public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = false) + public function __construct(ParameterAttributeInterface $V, ?ParameterAttributeInterface $K = null, string $description = '', bool $sensitive = true) { $this->parameter = iterable(V: $V->parameter(), K: $K?->parameter(), description: $description, sensitive: $sensitive); }
PHP 8.4 test on ubuntu-24.04: src/Attributes/StringAttr.php#L34
Escaped Mutant for Mutator "FalseValue": @@ @@ { use AttrTrait; private StringParameterInterface $parameter; - public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = false) + public function __construct(string|BackedEnum $pattern = '', string $description = '', bool $sensitive = true) { $this->parameter = string(regex: $pattern, description: $description, sensitive: $sensitive); }
PHP 8.4 test on ubuntu-24.04: src/Parameters.php#L76
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withIsVariadic(bool $flag): ParametersInterface { - $new = clone $this; + $new = $this; $new->isVariadic = $flag; return $new; }
PHP 8.4 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L81
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($this->type instanceof ReflectionUnionType) { $types = []; foreach ($this->type->getTypes() as $type) { - if ($type instanceof ReflectionIntersectionType) { + if (false) { continue; } $types[] = $type->getName();
PHP 8.4 test on ubuntu-24.04: src/ReflectionParameterTyped.php#L121
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if (method_exists($reflection, 'getName')) { return $reflection->getName(); } - if ($reflection instanceof ReflectionUnionType) { + if (true) { $types = []; foreach ($reflection->getTypes() as $type) { $types[] = $this->getTypeHint($type);
PHP 8.4 test on ubuntu-24.04: src/Traits/AttrTrait.php#L18
Escaped Mutant for Mutator "TrueValue": @@ @@ trait AttrTrait { - public function withIsSensitive(bool $isSensitive = true): static + public function withIsSensitive(bool $isSensitive = false): static { $new = clone $this; // @phpstan-ignore-next-line