1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 09:19:40 +01:00

Sanitize docblocks for psalm-check-type

This commit is contained in:
robchett 2023-11-02 13:13:11 +00:00 committed by Robert Chettleburgh
parent f507838ba8
commit 3cf93345a9

View File

@ -684,7 +684,7 @@ final class StatementsAnalyzer extends SourceAnalyzer
$check_type_string, $check_type_string,
$statements_analyzer->getAliases(), $statements_analyzer->getAliases(),
); );
$check_type = Type::parseString($fq_check_type_string); $check_type = Type::parseString(CommentAnalyzer::sanitizeDocblockType($fq_check_type_string));
/** @psalm-suppress InaccessibleProperty We just created this type */ /** @psalm-suppress InaccessibleProperty We just created this type */
$check_type->possibly_undefined = $possibly_undefined; $check_type->possibly_undefined = $possibly_undefined;