Skip to content

Commit 5451c85

Browse files
Try
1 parent 2d034aa commit 5451c85

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/Type/ObjectShapeType.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,6 @@ public function getUnresolvedInstancePropertyPrototype(string $propertyName, Cla
137137
);
138138
}
139139

140-
public function hasStaticProperty(string $propertyName): TrinaryLogic
141-
{
142-
return TrinaryLogic::createNo();
143-
}
144-
145-
public function getStaticProperty(string $propertyName, ClassMemberAccessAnswerer $scope): ExtendedPropertyReflection
146-
{
147-
throw new ShouldNotHappenException();
148-
}
149-
150-
public function getUnresolvedStaticPropertyPrototype(string $propertyName, ClassMemberAccessAnswerer $scope): UnresolvedPropertyPrototypeReflection
151-
{
152-
throw new ShouldNotHappenException();
153-
}
154-
155140
public function accepts(Type $type, bool $strictTypes): AcceptsResult
156141
{
157142
if ($type instanceof CompoundType) {
@@ -189,8 +174,8 @@ public function accepts(Type $type, bool $strictTypes): AcceptsResult
189174
if (in_array($propertyName, $this->optionalProperties, true)) {
190175
continue;
191176
}
192-
$result = $result->and($hasProperty);
193-
continue;
177+
178+
return $hasProperty;
194179
}
195180
if ($hasProperty->maybe()) {
196181
if (!in_array($propertyName, $this->optionalProperties, true)) {

0 commit comments

Comments
 (0)