Skip to content

Commit

Permalink
Sanitize docblocks for psalm-check-type
Browse files Browse the repository at this point in the history
  • Loading branch information
robchett committed Nov 3, 2023
1 parent f507838 commit 3cf9334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/StatementsAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private static function analyzeStatement(
$check_type_string,
$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 */
$check_type->possibly_undefined = $possibly_undefined;

Expand Down

0 comments on commit 3cf9334

Please sign in to comment.