diff --git a/src/Psalm/Type/MutableUnion.php b/src/Psalm/Type/MutableUnion.php index d22059efc..ed1eb405b 100644 --- a/src/Psalm/Type/MutableUnion.php +++ b/src/Psalm/Type/MutableUnion.php @@ -234,7 +234,7 @@ final class MutableUnion implements TypeNode $this->typed_class_strings = []; $this->checked = false; - $from_docblock = false; + $from_docblock = $this->from_docblock; $keyed_types = []; foreach ($types as $type) {