feat: allow any string or integer in array key #788
Annotations
1 warning
src/Type/Types/ArrayKeyType.php#L33
Escaped Mutant for Mutator "SpreadAssignment":
--- Original
+++ New
@@ @@
private function __construct(Type $type)
{
$this->signature = $type->toString();
- $this->types = $type instanceof CombiningType ? [...$type->types()] : [$type];
+ $this->types = $type instanceof CombiningType ? $type->types() : [$type];
foreach ($this->types as $subType) {
if (!$subType instanceof IntegerType && !$subType instanceof StringType) {
throw new InvalidArrayKey($subType);
|
The logs for this run have expired and are no longer available.
Loading