Skip to content

Commit 0183699

Browse files
committed
Simplify AccessoryNumericStringType
1 parent 7859ab8 commit 0183699

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/Type/Accessory/AccessoryNumericStringType.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ public function isSubTypeOf(Type $otherType): IsSuperTypeOfResult
111111

112112
public function isAcceptedBy(Type $acceptingType, bool $strictTypes): AcceptsResult
113113
{
114-
if ($acceptingType->isNonFalsyString()->yes()) {
115-
return AcceptsResult::createMaybe();
116-
}
117-
118-
if ($acceptingType->isNonEmptyString()->yes()) {
119-
return AcceptsResult::createYes();
120-
}
121-
122114
return $this->isSubTypeOf($acceptingType)->toAcceptsResult();
123115
}
124116

0 commit comments

Comments
 (0)