Skip to content

Commit 4428da8

Browse files
Try
1 parent 2d034aa commit 4428da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Type/ObjectShapeType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public function accepts(Type $type, bool $strictTypes): AcceptsResult
189189
if (in_array($propertyName, $this->optionalProperties, true)) {
190190
continue;
191191
}
192-
$result = $result->and($hasProperty);
193-
continue;
192+
193+
return $hasProperty;
194194
}
195195
if ($hasProperty->maybe()) {
196196
if (!in_array($propertyName, $this->optionalProperties, true)) {

0 commit comments

Comments
 (0)