Skip to content

Commit

Permalink
preserve from_docblock through setTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 24, 2022
1 parent 8b05f2e commit c8d6865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Type/MutableUnion.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function setTypes(array $types): self
$this->typed_class_strings = [];
$this->checked = false;

$from_docblock = false;
$from_docblock = $this->from_docblock;
$keyed_types = [];

foreach ($types as $type) {
Expand Down

0 comments on commit c8d6865

Please sign in to comment.