Skip to content

Commit

Permalink
Update ObjectType.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 2, 2024
1 parent 9b8ddcb commit d6f8165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/ObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ public function changeSubtractedType(?Type $subtractedType): Type
$subtractedTypesList = TypeUtils::flattenTypes($subtractedType);
$subtractedTypes = [];
foreach ($subtractedTypesList as $type) {
$subtractedTypes[$type->describe($preciseVerbosity)] = $type;
$subtractedTypes[] = $type;
}

foreach ($subtractedTypes as $subType) {
Expand Down

0 comments on commit d6f8165

Please sign in to comment.