mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
Sanitize docblocks for psalm-check-type
This commit is contained in:
parent
f507838ba8
commit
3cf93345a9
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user