Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Sep 13, 2024
1 parent a776452 commit 4b2513c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Type/Accessory/AccessoryLowercaseStringType.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function acceptsWithReason(Type $type, bool $strictTypes): AcceptsResult
return $type->isAcceptedWithReasonBy($this, $strictTypes);
}

return new AcceptsResult($type->isLiteralString(), []);
return new AcceptsResult($type->isLowercaseString(), []);
}

public function isSuperTypeOf(Type $type): TrinaryLogic
Expand All @@ -94,7 +94,7 @@ public function isSuperTypeOf(Type $type): TrinaryLogic
return TrinaryLogic::createYes();
}

return $type->isLiteralString();
return $type->isLowercaseString();
}

public function isSubTypeOf(Type $otherType): TrinaryLogic
Expand All @@ -103,7 +103,7 @@ public function isSubTypeOf(Type $otherType): TrinaryLogic
return $otherType->isSuperTypeOf($this);
}

return $otherType->isLiteralString()
return $otherType->isLowercaseString()
->and($otherType instanceof self ? TrinaryLogic::createYes() : TrinaryLogic::createMaybe());
}

Expand Down

0 comments on commit 4b2513c

Please sign in to comment.