Skip to content

Commit 8557fbb

Browse files
committed
WIP TMP - try without bleeding edge
1 parent 132fd1a commit 8557fbb

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Type/Constant/ConstantArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function __construct(
144144
if ($unsealed[0] instanceof StrictMixedType && !$unsealed[0] instanceof TemplateStrictMixedType) {
145145
$unsealed[0] = (new UnionType([new StringType(), new IntegerType()]))->toArrayKey();
146146
}
147-
} elseif (BleedingEdgeToggle::isBleedingEdge()) {
147+
} else {
148148
$never = new NeverType(true);
149149
$unsealed = [$never, $never];
150150
}

src/Type/Constant/ConstantArrayTypeBuilder.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,9 @@ private function __construct(
6363

6464
public static function createEmpty(): self
6565
{
66-
$unsealed = null;
67-
if (BleedingEdgeToggle::isBleedingEdge()) {
68-
$never = new NeverType(true);
69-
$unsealed = [$never, $never];
70-
}
71-
return new self([], [], [0], [], TrinaryLogic::createYes(), $unsealed);
66+
$never = new NeverType(true);
67+
68+
return new self([], [], [0], [], TrinaryLogic::createYes(), [$never, $never]);
7269
}
7370

7471
public static function createFromConstantArray(ConstantArrayType $startArrayType): self

0 commit comments

Comments
 (0)